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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!-- Based on fast/repaint/fixed-table-overflow-zindex.html -->
1 <html> 2 <html>
2 <head> 3 <head>
3 <link rel="stylesheet" href="resources/default.css"> 4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css">
4 <style> 5 <style>
5 table { top: 0px; left: 0px; border-spacing: 0px; position: absolute; } 6 table { top: 0px; left: 0px; border-spacing: 0px; position: absolute; }
6 td { background: green; padding: 0px; border-style: none; border: 0px; } 7 td { background: green; padding: 0px; border-style: none; border: 0px; }
7 td.fixed { position: fixed; left: 100px; top: 0px; z-index: 3; } 8 td.fixed { position: fixed; left: 100px; top: 0px; z-index: 3; }
8 </style> 9 </style>
9 <script src="resources/text-based-repaint.js"></script> 10 <script src="resources/paint-invalidation-test.js"></script>
10 <script> 11 <script>
11 if (window.testRunner) {
12 testRunner.waitUntilDone();
13 testRunner.dumpAsTextWithPixelResults();
14 }
15
16 window.onload = function() { 12 window.onload = function() {
17 window.scrollTo(0, 100); 13 window.scrollTo(0, 100);
18 runRepaintTest(); 14 runPaintInvalidationTest();
19 }; 15 };
20 16
21 function repaintTest() 17 window.expectedPaintInvalidationObjects = [
18 "LayoutTableCell TD id='moveMe' class='fixed'",
19 "LayoutTable (positioned) TABLE",
20 "LayoutTableCell TD",
21 "LayoutTableCell TD",
22 "LayoutTableCell (anonymous)",
23 "LayoutTableCell TD class='red'",
24 "LayoutTableSection TBODY",
25 "LayoutTableCell (anonymous)",
26 "LayoutBlockFlow (positioned) TD id='moveMe' class='fixed'",
27 ];
28 function paintInvalidationTest()
22 { 29 {
23 document.getElementById('moveMe').className = "fixed"; 30 document.getElementById('moveMe').className = "fixed";
24 } 31 }
25 </script> 32 </script>
26 </head> 33 </head>
27 <body style="height:2000px;"> 34 <body style="height:2000px;">
28 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f ixed position logic needs more basic testing --> 35 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f ixed position logic needs more basic testing -->
29 <!-- You should see no red on this page. --> 36 <!-- You should see no red on this page. -->
30 <table> 37 <table>
31 <tr><td></td><td></td></tr> 38 <tr><td></td><td></td></tr>
32 <tr><td id="moveMe"></td><td class="red"><div class="green" style="posit ion: relative; left: -100px; top: 0px;"></div></td></tr> 39 <tr><td id="moveMe"></td><td class="red"><div class="green" style="posit ion: relative; left: -100px; top: 0px;"></div></td></tr>
33 </body> 40 </body>
34 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698