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

Unified Diff: LayoutTests/paint/invalidation/spv2/multicol-with-overflowing-block-rl.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-with-overflowing-block-rl.html
diff --git a/LayoutTests/fast/repaint/multicol-with-overflowing-block-rl.html b/LayoutTests/paint/invalidation/spv2/multicol-with-overflowing-block-rl.html
similarity index 57%
copy from LayoutTests/fast/repaint/multicol-with-overflowing-block-rl.html
copy to LayoutTests/paint/invalidation/spv2/multicol-with-overflowing-block-rl.html
index 60793d0499451bb5bad3edd01bc80242391f6ee7..ad442f8c4886e242bf03221cdea99a1415dda79e 100644
--- a/LayoutTests/fast/repaint/multicol-with-overflowing-block-rl.html
+++ b/LayoutTests/paint/invalidation/spv2/multicol-with-overflowing-block-rl.html
@@ -1,11 +1,12 @@
+<!-- Based on fast/repaint/multicol-with-overflowing-block-rl.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 DIV id='elm'",
+ ];
+ function paintInvalidationTest() {
document.getElementById('elm').style.background = 'green';
}
</script>
@@ -15,4 +16,4 @@
</div>
</div>
<p>Test changing the background color of a big block that overflows the flow thread.</p>
-<p>A green square should be seen above (if tested manually, you need to click first).</p>
+<p>A green square should be seen above.</p>

Powered by Google App Engine
This is Rietveld 408576698