Index: LayoutTests/paint/invalidation/spv2/repaint-squashed-layer-in-rect.html |
diff --git a/LayoutTests/compositing/squashing/repaint-squashed-layer-in-rect.html b/LayoutTests/paint/invalidation/spv2/repaint-squashed-layer-in-rect.html |
similarity index 72% |
copy from LayoutTests/compositing/squashing/repaint-squashed-layer-in-rect.html |
copy to LayoutTests/paint/invalidation/spv2/repaint-squashed-layer-in-rect.html |
index 4d844520d4c8c7fac5b61e773fb101abbaed94bc..78e6f9c9f391aaf22d82560906819e34e7af1c1f 100644 |
--- a/LayoutTests/compositing/squashing/repaint-squashed-layer-in-rect.html |
+++ b/LayoutTests/paint/invalidation/spv2/repaint-squashed-layer-in-rect.html |
@@ -1,3 +1,4 @@ |
+<!-- Based on compositing/squashing/repaint-squashed-layer-in-rect.html --> |
<!doctype html> |
<div style="height: 800px; width: 800px; background-color: lightgray; transform:translateZ(0)"> |
</div> |
@@ -7,13 +8,16 @@ |
<div id="imgElement" style="height: 200px; width: 200px; background-color: lightblue"> |
</div> |
</div> |
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
+<script src="resources/paint-invalidation-test.js"></script> |
<script> |
// Test that a repaint for the rect containing the changed background image is issued in the coordinate space of the |
// squashing layer, *not* local to the div with the background image on it. |
-function repaintTest() { |
+window.expectedPaintInvalidationObjects = [ |
+ "LayoutBlockFlow DIV id='imgElement'", |
+]; |
+function paintInvalidationTest() { |
var imgElement = document.querySelector("#imgElement"); |
imgElement.style.backgroundImage = "url('data:image/gif;base64,R0lGODdhAgACAIABAAAAAP///ywAAAAAAgACAAACA0QCBQA7')"; |
} |
-runRepaintTest(); |
-</script> |
+runPaintInvalidationTest(); |
+</script> |