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

Unified Diff: LayoutTests/paint/invalidation/spv2/text-in-relative-positioned-inline.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/text-in-relative-positioned-inline.html
diff --git a/LayoutTests/paint/invalidation/spv2/text-in-relative-positioned-inline.html b/LayoutTests/paint/invalidation/spv2/text-in-relative-positioned-inline.html
new file mode 100644
index 0000000000000000000000000000000000000000..b6fbc2b721b13cb0feb2a9775f758a508d5c7ce3
--- /dev/null
+++ b/LayoutTests/paint/invalidation/spv2/text-in-relative-positioned-inline.html
@@ -0,0 +1,24 @@
+<!-- Based on fast/repaint/text-in-relative-positioned-inline.html -->
+<head>
+ <script src="resources/paint-invalidation-test.js"></script>
+ <script>
+ window.expectedPaintInvalidationObjects = [
+ "InlineTextBox 'ab'",
+ "LayoutText #text",
+ "InlineFlowBox",
+ "LayoutInline (relative positioned) SPAN id='target'",
+ "LayoutText #text",
+ "RootInlineBox",
+ ];
+ function paintInvalidationTest()
+ {
+ document.getElementById("target").style.display = "none";
+ }
+ </script>
+</head>
+<body onload="runPaintInvalidationTest()">
+ <div style="margin-left: 100px; font: 100px; -webkit-font-smoothing: none; height: 100px;">
+ <span id="target" style="position: relative; left: -100px; color: red;">ab</span>
+ </div>
+ <div style="width: 100px; height: 100px; background-color: green; margin-top: -100px;"></div>
+</body>

Powered by Google App Engine
This is Rietveld 408576698