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

Unified Diff: LayoutTests/paint/invalidation/spv2/fixed-table-overflow.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.html
diff --git a/LayoutTests/paint/invalidation/spv2/fixed-table-overflow.html b/LayoutTests/paint/invalidation/spv2/fixed-table-overflow.html
new file mode 100644
index 0000000000000000000000000000000000000000..b720e42e6d5bf58494f90abbe1ff822825eeb95e
--- /dev/null
+++ b/LayoutTests/paint/invalidation/spv2/fixed-table-overflow.html
@@ -0,0 +1,43 @@
+<!-- Based on fast/repaint/fixed-table-overflow.html -->
+<html>
+<head>
+ <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; }
+ </style>
+ <script src="resources/paint-invalidation-test.js"></script>
+ <script>
+ window.onload = function() {
+ window.scrollTo(0, 100);
+ runPaintInvalidationTest();
+ };
+
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (relative positioned) DIV class='green'",
+ "LayoutTableCell TD id='moveMe' class='fixed'",
+ "LayoutTable (positioned) TABLE",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD",
+ "LayoutTableCell TD class='red'",
+ "LayoutTableCell (anonymous)",
+ "LayoutTableSection TBODY",
+ "LayoutTableCell (anonymous)",
+ "LayoutBlockFlow (positioned) TD id='moveMe' class='fixed'",
+ "LayoutBlockFlow (relative positioned) DIV class='green'",
+ ];
+ function paintInvalidationTest()
+ {
+ document.getElementById('moveMe').className = "fixed";
+ }
+ </script>
+</head>
+<body style="height:2000px;">
+ <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer fixed position logic needs more basic testing -->
+ <!-- You should see no red on this page. -->
+ <table>
+ <tr><td></td><td></td></tr>
+ <tr><td class="red"></td><td id="moveMe"><div style="position: relative; left: -100px; top: 0px;" class="green"></div></td></tr>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698