Index: LayoutTests/paint/invalidation/spv2/erase-overflow.html |
diff --git a/LayoutTests/fast/repaint/erase-overflow.html b/LayoutTests/paint/invalidation/spv2/erase-overflow.html |
similarity index 56% |
copy from LayoutTests/fast/repaint/erase-overflow.html |
copy to LayoutTests/paint/invalidation/spv2/erase-overflow.html |
index 05f29f8d070b00d57af608bd54e91fbdddf3a09d..47f541c44ae6cca8ab5c2a1f5ad349eaf03b7cd5 100644 |
--- a/LayoutTests/fast/repaint/erase-overflow.html |
+++ b/LayoutTests/paint/invalidation/spv2/erase-overflow.html |
@@ -1,18 +1,23 @@ |
+<!-- Based on fast/repaint/erase-overflow.html --> |
<html> |
<head> |
<title>Test for http://bugs.webkit.org/show_bug.cgi?id=11935</title> |
<style type="text/css"> |
div.square { width: 100px; height: 100px; } |
</style> |
- <script type="text/javascript" src="resources/text-based-repaint.js"></script> |
+ <script type="text/javascript" src="resources/paint-invalidation-test.js"></script> |
<script type="text/javascript"> |
- function repaintTest() |
+ window.expectedPaintInvalidationObjects = [ |
+ "LayoutBlockFlow DIV id='target' class='square'", |
+ "LayoutBlockFlow DIV class='square'", |
+ ]; |
+ function paintInvalidationTest() |
{ |
document.getElementById("target").style.overflow = "hidden"; |
} |
</script> |
</head> |
-<body onload="runRepaintTest()"> |
+<body onload="runPaintInvalidationTest()"> |
<div id="target" class="square"> |
<div class="square" style="background-color: green"></div> |
<div class="square" style="background-color: red"></div> |