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

Side by Side Diff: LayoutTests/fast/repaint/scroll-inside-table-cell.html

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 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 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="stylesheet" href="resources/default.css" /> 4 <link rel="stylesheet" href="resources/default.css" />
5 <style> 5 <style>
6 table { 6 table {
7 border-spacing: 0px; 7 border-spacing: 0px;
8 background: red; 8 background: red;
9 } 9 }
10 10
11 td { 11 td {
12 padding: 0px; 12 padding: 0px;
13 border: 2px solid green; 13 border: 2px solid green;
14 } 14 }
15 </style> 15 </style>
16 <script src="resources/repaint.js"></script> 16 <script src="resources/repaint.js"></script>
17 <script> 17 <script>
18 if (window.testRunner) 18 if (window.testRunner)
19 testRunner.dumpAsText(true); 19 testRunner.dumpAsTextWithPixelResults();
20 20
21 function repaintTest() 21 function repaintTest()
22 { 22 {
23 var cell = document.getElementById("cellToScroll"); 23 var cell = document.getElementById("cellToScroll");
24 cell.scrollLeft = 1200; 24 cell.scrollLeft = 1200;
25 } 25 }
26 window.addEventListener("load", runRepaintTest, false); 26 window.addEventListener("load", runRepaintTest, false);
27 </script> 27 </script>
28 </head> 28 </head>
29 <body> 29 <body>
30 <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element bei ng scrolled off page using javascript. --> 30 <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element bei ng scrolled off page using javascript. -->
31 <!-- For the test to pass you should not see any RED, only green --> 31 <!-- For the test to pass you should not see any RED, only green -->
32 <table style="table-layout: fixed; width: 0"> 32 <table style="table-layout: fixed; width: 0">
33 <tr class="red"> 33 <tr class="red">
34 <td class="green" style="height: 100px; width: 300px;"></td> 34 <td class="green" style="height: 100px; width: 300px;"></td>
35 <td class="green" style="height: 100px; width: 450px;"></td> 35 <td class="green" style="height: 100px; width: 450px;"></td>
36 </tr> 36 </tr>
37 <tr> 37 <tr>
38 <td style="overflow: hidden"><div class="green" style="height: 465px; wi dth: 300px"></div></td> 38 <td style="overflow: hidden"><div class="green" style="height: 465px; wi dth: 300px"></div></td>
39 <td id="cellToScroll" class="relative" style="overflow: scroll;"> 39 <td id="cellToScroll" class="relative" style="overflow: scroll;">
40 <div class="relative red" style="height: 450px; width: 450px;"></div > 40 <div class="relative red" style="height: 450px; width: 450px;"></div >
41 <div class="absolute green" style="height: 450px; width: 450px; left : 500px; top: 0px"></div> 41 <div class="absolute green" style="height: 450px; width: 450px; left : 500px; top: 0px"></div>
42 </td> 42 </td>
43 </tr> 43 </tr>
44 </table> 44 </table>
45 </body> 45 </body>
46 </html> 46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698