Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Unified Diff: LayoutTests/paint/invalidation/spv2/selection-gap-flipped-absolute-child.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698