Index: LayoutTests/paint/invalidation/spv2/selection-gap-flipped-absolute-child.html |
diff --git a/LayoutTests/fast/repaint/selection-gap-flipped-absolute-child.html b/LayoutTests/paint/invalidation/spv2/selection-gap-flipped-absolute-child.html |
similarity index 59% |
copy from LayoutTests/fast/repaint/selection-gap-flipped-absolute-child.html |
copy to LayoutTests/paint/invalidation/spv2/selection-gap-flipped-absolute-child.html |
index 340ac07b52c88e31d9c4f8789761c6905c894706..87ea6091e34e6ff29d635b8563f0aa8d052498dd 100644 |
--- a/LayoutTests/fast/repaint/selection-gap-flipped-absolute-child.html |
+++ b/LayoutTests/paint/invalidation/spv2/selection-gap-flipped-absolute-child.html |
@@ -1,8 +1,21 @@ |
+<!-- Based on fast/repaint/selection-gap-flipped-absolute-child.html --> |
<!doctype html> |
<head> |
- <script src="resources/text-based-repaint.js"></script> |
+ <script src="resources/paint-invalidation-test.js"></script> |
<script> |
- function repaintTest() |
+ if (window.testRunner) |
+ testRunner.dumpAsTextWithPixelResults(); |
+ window.expectedPaintInvalidationObjects = [ |
+ "LayoutBlockFlow HTML", |
+ "LayoutBlockFlow BODY", |
+ "LayoutBlockFlow DIV", |
+ "LayoutBR BR", |
+ "InlineTextBox '\n'", |
+ "LayoutBlockFlow (positioned) DIV id='target'", |
+ "LayoutBR BR", |
+ "InlineTextBox '\n'", |
+ ]; |
+ function paintInvalidationTest() |
{ |
var target = document.getElementById("target"); |
getSelection().setBaseAndExtent(target, 0, target.nextSibling, 1); |
@@ -13,7 +26,7 @@ |
#target::selection { background-color: green; } |
</style> |
</head> |
-<body onload="runRepaintTest()"> |
+<body onload="runPaintInvalidationTest()"> |
<div style="position: absolute; margin-right: 200px;"> |
<div>Bug <a href="http://webkit.org/b/111000">111000</a>: Selection gaps don't repaint correctly with transforms</div> |
<div>This tests that absolute elements that get flipped are invalidated correctly. The box will be competely green if the selected area was invalidated correctly.</div> |