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

Unified Diff: LayoutTests/paint/invalidation/spv2/multicol-relpos-with-abspos.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/multicol-relpos-with-abspos.html
diff --git a/LayoutTests/fast/repaint/multicol-relpos-with-abspos.html b/LayoutTests/paint/invalidation/spv2/multicol-relpos-with-abspos.html
similarity index 52%
copy from LayoutTests/fast/repaint/multicol-relpos-with-abspos.html
copy to LayoutTests/paint/invalidation/spv2/multicol-relpos-with-abspos.html
index 353c892b0d3a0afe4921b62c2a3efd3d7befe89e..4d12a9d76ac87a207aca389842c42b35db981f34 100644
--- a/LayoutTests/fast/repaint/multicol-relpos-with-abspos.html
+++ b/LayoutTests/paint/invalidation/spv2/multicol-relpos-with-abspos.html
@@ -1,11 +1,12 @@
+<!-- Based on fast/repaint/multicol-relpos-with-abspos.html -->
<!DOCTYPE html>
-<script src="resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
- if (window.internals)
- onload = runRepaintTest;
- else
- onclick = repaintTest;
- function repaintTest() {
+ onload = runPaintInvalidationTest;
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) DIV id='target'",
+ ];
+ function paintInvalidationTest() {
var target = document.getElementById('target');
target.style.visibility = 'visible';
}
@@ -13,4 +14,4 @@
<div style="position:relative; -webkit-columns:4; -webkit-column-gap:10px; width:630px; height:40px; column-fill:auto;">
<div id="target" style="position:absolute; width:20px; height:20px; right:0; bottom:0; visibility:hidden; background:green;"></div>
</div>
-<p>A green square should be seen above (if tested manually, you need to click first).</p>
+<p>A green rectangle should be seen above.</p>

Powered by Google App Engine
This is Rietveld 408576698