From dee575a795659e230073ef63429828adf960fe6a Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Wed, 4 Mar 2015 14:50:13 -0500 Subject: [PATCH] Bug 913443 - Add some tests. r=roc --- .../paintedlayer-recycling-1.html | 75 +++++++++++++++++ .../paintedlayer-recycling-2.html | 67 +++++++++++++++ .../paintedlayer-recycling-3.html | 71 ++++++++++++++++ .../paintedlayer-recycling-4.html | 70 ++++++++++++++++ .../paintedlayer-recycling-5.html | 77 +++++++++++++++++ .../paintedlayer-recycling-6.html | 78 ++++++++++++++++++ .../paintedlayer-recycling-7.html | 82 +++++++++++++++++++ layout/reftests/invalidation/reftest.list | 7 ++ 8 files changed, 527 insertions(+) create mode 100644 layout/reftests/invalidation/paintedlayer-recycling-1.html create mode 100644 layout/reftests/invalidation/paintedlayer-recycling-2.html create mode 100644 layout/reftests/invalidation/paintedlayer-recycling-3.html create mode 100644 layout/reftests/invalidation/paintedlayer-recycling-4.html create mode 100644 layout/reftests/invalidation/paintedlayer-recycling-5.html create mode 100644 layout/reftests/invalidation/paintedlayer-recycling-6.html create mode 100644 layout/reftests/invalidation/paintedlayer-recycling-7.html diff --git a/layout/reftests/invalidation/paintedlayer-recycling-1.html b/layout/reftests/invalidation/paintedlayer-recycling-1.html new file mode 100644 index 00000000000..a5f3b68806c --- /dev/null +++ b/layout/reftests/invalidation/paintedlayer-recycling-1.html @@ -0,0 +1,75 @@ + + + +Switching the transform to animate shouldn't invalidate the fixed layer + + + +
+ +
+ +
+ +
+ +
+ +
+ + diff --git a/layout/reftests/invalidation/paintedlayer-recycling-2.html b/layout/reftests/invalidation/paintedlayer-recycling-2.html new file mode 100644 index 00000000000..45d7cc982d8 --- /dev/null +++ b/layout/reftests/invalidation/paintedlayer-recycling-2.html @@ -0,0 +1,67 @@ + + + +Starting to scroll the nested scrollbox shouldn't invalidate the fixed layer + + + +
+ +
+
+ +
+ +
+ + diff --git a/layout/reftests/invalidation/paintedlayer-recycling-3.html b/layout/reftests/invalidation/paintedlayer-recycling-3.html new file mode 100644 index 00000000000..445e1241e4a --- /dev/null +++ b/layout/reftests/invalidation/paintedlayer-recycling-3.html @@ -0,0 +1,71 @@ + + + +Adding a new display item to the bottom of an existing PaintedLayer shouldn't cause the other items in that layer to change layers + + + +
+ +
+ + + +
+ +
+ + diff --git a/layout/reftests/invalidation/paintedlayer-recycling-4.html b/layout/reftests/invalidation/paintedlayer-recycling-4.html new file mode 100644 index 00000000000..17913a96a6e --- /dev/null +++ b/layout/reftests/invalidation/paintedlayer-recycling-4.html @@ -0,0 +1,70 @@ + + + +Removing an existing display item from the bottom of an existing PaintedLayer shouldn't cause the other items in that layer to change layers + + + +
+ +
+ +
+ +
+ +
+ +
+ + diff --git a/layout/reftests/invalidation/paintedlayer-recycling-5.html b/layout/reftests/invalidation/paintedlayer-recycling-5.html new file mode 100644 index 00000000000..c4d53915bc8 --- /dev/null +++ b/layout/reftests/invalidation/paintedlayer-recycling-5.html @@ -0,0 +1,77 @@ + + + +Removing an existing display item that has its own PaintedLayer shouldn't cause invalidations in other PaintedLayers on top of it + + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + diff --git a/layout/reftests/invalidation/paintedlayer-recycling-6.html b/layout/reftests/invalidation/paintedlayer-recycling-6.html new file mode 100644 index 00000000000..7af1984aefa --- /dev/null +++ b/layout/reftests/invalidation/paintedlayer-recycling-6.html @@ -0,0 +1,78 @@ + + + +Adding a new display item that has its own PaintedLayer shouldn't cause invalidations in other PaintedLayers on top of it + + + +
+ +
+ + + +
+ +
+ +
+ +
+ + diff --git a/layout/reftests/invalidation/paintedlayer-recycling-7.html b/layout/reftests/invalidation/paintedlayer-recycling-7.html new file mode 100644 index 00000000000..fed64813cd8 --- /dev/null +++ b/layout/reftests/invalidation/paintedlayer-recycling-7.html @@ -0,0 +1,82 @@ + + + +When a PaintedLayer is split up into two, the lower items should stay in their layer and the higher items should get a new one. + + + + + +
+ +
+ +
+ +
+ + + +
+ +
+ + diff --git a/layout/reftests/invalidation/reftest.list b/layout/reftests/invalidation/reftest.list index 069f134252d..b59721b194e 100644 --- a/layout/reftests/invalidation/reftest.list +++ b/layout/reftests/invalidation/reftest.list @@ -48,3 +48,10 @@ pref(layout.animated-image-layers.enabled,true) == test-animated-image-layers-ba != nudge-to-integer-invalidation.html about:blank != nudge-to-integer-invalidation.html?reverse about:blank != clipped-animated-transform-1.html about:blank +!= paintedlayer-recycling-1.html about:blank +!= paintedlayer-recycling-2.html about:blank +!= paintedlayer-recycling-3.html about:blank +!= paintedlayer-recycling-4.html about:blank +!= paintedlayer-recycling-5.html about:blank +!= paintedlayer-recycling-6.html about:blank +!= paintedlayer-recycling-7.html about:blank