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

Unified Diff: LayoutTests/paint/invalidation/spv2/block-shift-repaint.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/block-shift-repaint.html
diff --git a/LayoutTests/fast/repaint/block-shift-repaint.html b/LayoutTests/paint/invalidation/spv2/block-shift-repaint.html
similarity index 64%
copy from LayoutTests/fast/repaint/block-shift-repaint.html
copy to LayoutTests/paint/invalidation/spv2/block-shift-repaint.html
index 4c0feed15cadefd8f6b5d4ccf502e78106870839..8c7a63f589eb51d8bcf9f4be53cdb7c7bb4e76de 100644
--- a/LayoutTests/fast/repaint/block-shift-repaint.html
+++ b/LayoutTests/paint/invalidation/spv2/block-shift-repaint.html
@@ -1,3 +1,4 @@
+<!-- Based on fast/repaint/block-shift-repaint.html -->
<html>
<head>
<title>Test for http://bugs.webkit.org/show_bug.cgi?id=12079</title>
@@ -10,9 +11,23 @@
.half { height: 30px; width: 60px; }
.full { height: 60px; width: 60px; }
</style>
- <script src="resources/text-based-repaint.js" type="text/javascript"></script>
+ <script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<script type="text/javascript">
- function repaintTest()
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV id='div1' class='blue half'",
+ "LayoutBlockFlow DIV class='red half'",
+ "LayoutBlockFlow DIV class='green half'",
+ "LayoutBlockFlow DIV id='top' class='blue half'",
+ "LayoutBlockFlow DIV class='red half'",
+ "LayoutBlockFlow DIV class='green half'",
+ "LayoutBlockFlow DIV id='div2' class='zero'",
+ "LayoutBlockFlow DIV class='green half'",
+ "LayoutBlockFlow DIV class='red half'",
+ "LayoutBlockFlow DIV id='innerDiv'",
+ "LayoutBlockFlow DIV class='half'",
+ "LayoutBlockFlow DIV class='half'",
+ ];
+ function paintInvalidationTest()
{
var div1 = document.getElementById("div1");
div1.style.height = "0";
@@ -28,7 +43,7 @@
}
</script>
</head>
-<body onload="runRepaintTest()">
+<body onload="runPaintInvalidationTest()">
<div class="playground">
<div id="div1" class="blue half"></div>
<div class="red half"></div>

Powered by Google App Engine
This is Rietveld 408576698