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

Side by Side Diff: LayoutTests/compositing/force-compositing-mode/overflow-hidden-iframe-layer.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 iframe { 4 iframe {
5 height: 150px; 5 height: 150px;
6 width: 150px; 6 width: 150px;
7 } 7 }
8 </style> 8 </style>
9 <script> 9 <script>
10 if (window.internals) { 10 if (window.internals) {
11 internals.settings.setForceCompositingMode(true); 11 internals.settings.setForceCompositingMode(true);
12 internals.settings.setAcceleratedCompositingForScrollableFramesEnabled(tru e); 12 internals.settings.setAcceleratedCompositingForScrollableFramesEnabled(tru e);
13 } 13 }
14 function doTest() 14 function doTest()
15 { 15 {
16 if (window.testRunner) 16 if (window.testRunner)
17 testRunner.display(); 17 testRunner.display();
18 var iframe = document.getElementById("parent-iframe"); 18 var iframe = document.getElementById("parent-iframe");
19 iframe.contentDocument.body.setAttribute("style", "overflow:hidden"); 19 iframe.contentDocument.body.setAttribute("style", "overflow:hidden");
20 iframe.contentDocument.body.offsetWidth; // See bug 41999 20 iframe.contentDocument.body.offsetWidth; // See bug 41999
21 if (window.testRunner) { 21 if (window.testRunner) {
22 testRunner.dumpAsText(false); 22 testRunner.dumpAsText();
23 document.getElementById('layertree').innerText = window.internals.layerT reeAsText(document); 23 document.getElementById('layertree').innerText = window.internals.layerT reeAsText(document);
24 } 24 }
25 } 25 }
26 window.addEventListener("load", doTest, false); 26 window.addEventListener("load", doTest, false);
27 </script> 27 </script>
28 </head> 28 </head>
29 <body> 29 <body>
30 <iframe id="parent-iframe" src="resources/subframe-big.html"></iframe> 30 <iframe id="parent-iframe" src="resources/subframe-big.html"></iframe>
31 <pre id="layertree"></pre> 31 <pre id="layertree"></pre>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698