Index: LayoutTests/paint/invalidation/spv2/squashing-inside-preserve-3d-element.html |
diff --git a/LayoutTests/compositing/squashing/squashing-inside-preserve-3d-element.html b/LayoutTests/paint/invalidation/spv2/squashing-inside-preserve-3d-element.html |
similarity index 71% |
copy from LayoutTests/compositing/squashing/squashing-inside-preserve-3d-element.html |
copy to LayoutTests/paint/invalidation/spv2/squashing-inside-preserve-3d-element.html |
index 5a1f56b70bc89f5683362b4e4d8d78b136648f07..f3c304bbb652cdb30b29f5c070f4c981b4ebb6cf 100644 |
--- a/LayoutTests/compositing/squashing/squashing-inside-preserve-3d-element.html |
+++ b/LayoutTests/paint/invalidation/spv2/squashing-inside-preserve-3d-element.html |
@@ -1,18 +1,22 @@ |
+<!-- Based on compositing/squashing/squashing-inside-preserve-3d-element.html --> |
<!doctype html> |
<div style="-webkit-transform-style: preserve-3d"> |
<div style="width: 100px; height: 100px; background:lightgray; transform:translateZ(0)"></div> |
<div id="target" style="position: absolute; top: 20px; left: 20px; height: 100px; width: 100px; background:lightblue"></div> |
</div> |
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
+<script src="resources/paint-invalidation-test.js"></script> |
<script> |
// Test that squashing works properly when inside of a transform-style: preserve-3d element. In the bug that this layout test |
// was added to fix, the coordinates of the squashing layer paint invalidation rects were not recorded correctly, because some of |
// the code computed transformed ancestors incorrectly (it should *not* include the preserve-3d element). |
-function repaintTest() { |
+window.expectedPaintInvalidationObjects = [ |
+ "LayoutBlockFlow (positioned) DIV id='target'", |
+]; |
+function paintInvalidationTest() { |
var target = document.getElementById('target'); |
target.style.background = 'red'; |
} |
-runRepaintTest(); |
+runPaintInvalidationTest(); |
</script> |