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

Side by Side Diff: LayoutTests/compositing/rtl/rtl-fixed-overflow-scrolled.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 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 body { 4 body {
5 direction: rtl; 5 direction: rtl;
6 margin: 0px; 6 margin: 0px;
7 background-color: red; 7 background-color: red;
8 } 8 }
9 9
10 .positioned { 10 .positioned {
(...skipping 22 matching lines...) Expand all
33 #layertree { 33 #layertree {
34 position: absolute; 34 position: absolute;
35 top: 10000px; 35 top: 10000px;
36 left: 0px; 36 left: 0px;
37 } 37 }
38 </style> 38 </style>
39 <script> 39 <script>
40 function doTest() { 40 function doTest() {
41 if (window.testRunner) { 41 if (window.testRunner) {
42 testRunner.waitUntilDone(); 42 testRunner.waitUntilDone();
43 testRunner.dumpAsText(true); 43 testRunner.dumpAsTextWithPixelResults();
44 } 44 }
45 45
46 // The far left coordinate of the document varies by window width. 46 // The far left coordinate of the document varies by window width.
47 var offset = document.body.clientWidth - document.body.scrollWidth + 1; 47 var offset = document.body.clientWidth - document.body.scrollWidth + 1;
48 48
49 window.setTimeout(function() { 49 window.setTimeout(function() {
50 window.scrollTo(offset, 0); 50 window.scrollTo(offset, 0);
51 if (window.testRunner) { 51 if (window.testRunner) {
52 if (top == self) 52 if (top == self)
53 document.getElementById('layertree').innerText = window.inte rnals.layerTreeAsText(document); 53 document.getElementById('layertree').innerText = window.inte rnals.layerTreeAsText(document);
54 testRunner.notifyDone(); 54 testRunner.notifyDone();
55 } 55 }
56 }, 0); 56 }, 0);
57 } 57 }
58 window.addEventListener('load', doTest, false); 58 window.addEventListener('load', doTest, false);
59 </script> 59 </script>
60 <body> 60 <body>
61 <div id="root"></div> 61 <div id="root"></div>
62 <div class="positioned indicator"></div> 62 <div class="positioned indicator"></div>
63 <div class="positioned layer"></div> 63 <div class="positioned layer"></div>
64 64
65 <pre id="layertree"></pre> 65 <pre id="layertree"></pre>
66 </body> 66 </body>
67 </html> 67 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/rtl/rtl-fixed-overflow.html ('k') | LayoutTests/compositing/rtl/rtl-iframe-absolute.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698