Index: LayoutTests/paint/invalidation/spv2/block-shift-repaint.html |
diff --git a/LayoutTests/fast/repaint/block-shift-repaint.html b/LayoutTests/paint/invalidation/spv2/block-shift-repaint.html |
similarity index 64% |
copy from LayoutTests/fast/repaint/block-shift-repaint.html |
copy to LayoutTests/paint/invalidation/spv2/block-shift-repaint.html |
index 4c0feed15cadefd8f6b5d4ccf502e78106870839..8c7a63f589eb51d8bcf9f4be53cdb7c7bb4e76de 100644 |
--- a/LayoutTests/fast/repaint/block-shift-repaint.html |
+++ b/LayoutTests/paint/invalidation/spv2/block-shift-repaint.html |
@@ -1,3 +1,4 @@ |
+<!-- Based on fast/repaint/block-shift-repaint.html --> |
<html> |
<head> |
<title>Test for http://bugs.webkit.org/show_bug.cgi?id=12079</title> |
@@ -10,9 +11,23 @@ |
.half { height: 30px; width: 60px; } |
.full { height: 60px; width: 60px; } |
</style> |
- <script src="resources/text-based-repaint.js" type="text/javascript"></script> |
+ <script src="resources/paint-invalidation-test.js" type="text/javascript"></script> |
<script type="text/javascript"> |
- function repaintTest() |
+ window.expectedPaintInvalidationObjects = [ |
+ "LayoutBlockFlow DIV id='div1' class='blue half'", |
+ "LayoutBlockFlow DIV class='red half'", |
+ "LayoutBlockFlow DIV class='green half'", |
+ "LayoutBlockFlow DIV id='top' class='blue half'", |
+ "LayoutBlockFlow DIV class='red half'", |
+ "LayoutBlockFlow DIV class='green half'", |
+ "LayoutBlockFlow DIV id='div2' class='zero'", |
+ "LayoutBlockFlow DIV class='green half'", |
+ "LayoutBlockFlow DIV class='red half'", |
+ "LayoutBlockFlow DIV id='innerDiv'", |
+ "LayoutBlockFlow DIV class='half'", |
+ "LayoutBlockFlow DIV class='half'", |
+ ]; |
+ function paintInvalidationTest() |
{ |
var div1 = document.getElementById("div1"); |
div1.style.height = "0"; |
@@ -28,7 +43,7 @@ |
} |
</script> |
</head> |
-<body onload="runRepaintTest()"> |
+<body onload="runPaintInvalidationTest()"> |
<div class="playground"> |
<div id="div1" class="blue half"></div> |
<div class="red half"></div> |