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

Unified Diff: LayoutTests/paint/invalidation/spv2/fixed-table-overflow-zindex.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/fixed-table-overflow-zindex.html
diff --git a/LayoutTests/fast/repaint/fixed-table-overflow-zindex.html b/LayoutTests/paint/invalidation/spv2/fixed-table-overflow-zindex.html
similarity index 53%
copy from LayoutTests/fast/repaint/fixed-table-overflow-zindex.html
copy to LayoutTests/paint/invalidation/spv2/fixed-table-overflow-zindex.html
index 6478ec445297c5f9c30d9493f3fc22f7cbde2f40..4706e2f1d615a9bf5219972cb3de3ec39f5e2061 100644
--- a/LayoutTests/fast/repaint/fixed-table-overflow-zindex.html
+++ b/LayoutTests/paint/invalidation/spv2/fixed-table-overflow-zindex.html
@@ -1,24 +1,31 @@
+<!-- Based on fast/repaint/fixed-table-overflow-zindex.html -->
<html>
<head>
- <link rel="stylesheet" href="resources/default.css">
+ <link rel="stylesheet" href="../../../fast/repaint/resources/default.css">
<style>
table { top: 0px; left: 0px; border-spacing: 0px; position: absolute; }
td { background: green; padding: 0px; border-style: none; border: 0px; }
td.fixed { position: fixed; left: 100px; top: 0px; z-index: 3; }
</style>
- <script src="resources/text-based-repaint.js"></script>
+ <script src="resources/paint-invalidation-test.js"></script>
<script>
- if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.dumpAsTextWithPixelResults();
- }
-
window.onload = function() {
window.scrollTo(0, 100);
- runRepaintTest();
+ runPaintInvalidationTest();
};
- function repaintTest()
+ window.expectedPaintInvalidationObjects = [
+ "LayoutTableCell TD id='moveMe' class='fixed'",
+ "LayoutTable (positioned) TABLE",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ "LayoutTableCell (anonymous)",
+ "LayoutTableCell TD class='red'",
+ "LayoutTableSection TBODY",
+ "LayoutTableCell (anonymous)",
+ "LayoutBlockFlow (positioned) TD id='moveMe' class='fixed'",
+ ];
+ function paintInvalidationTest()
{
document.getElementById('moveMe').className = "fixed";
}

Powered by Google App Engine
This is Rietveld 408576698