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

Side by Side Diff: LayoutTests/compositing/force-compositing-mode/overflow-iframe-enter-compositing.html

Issue 181653006: Remove testRunner.display() from most compositing/ tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert change to plugin test Created 6 years, 9 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 <script src="../../resources/run-after-display.js"></script>
3 <style> 4 <style>
4 iframe { 5 iframe {
5 height: 150px; 6 height: 150px;
6 width: 150px; 7 width: 150px;
7 } 8 }
8 </style> 9 </style>
9 <script> 10 <script>
10 if (window.internals) { 11 if (window.internals) {
11 internals.settings.setForceCompositingMode(true); 12 internals.settings.setForceCompositingMode(true);
12 internals.settings.setAcceleratedCompositingForScrollableFramesEnabled(tru e); 13 internals.settings.setAcceleratedCompositingForScrollableFramesEnabled(tru e);
13 } 14 }
14 function doTest() 15 function doTest()
15 { 16 {
16 if (window.testRunner) 17 if (window.testRunner)
17 testRunner.display(); 18 testRunner.waitUntilDone();
18 var iframe = document.getElementById("parent-iframe"); 19 runAfterDisplay(function() {
19 var box = iframe.contentDocument.getElementById("box"); 20 var iframe = document.getElementById("parent-iframe");
20 box.setAttribute("style", "height:500px;width:500px;"); 21 var box = iframe.contentDocument.getElementById("box");
21 iframe.contentDocument.body.offsetWidth; // See bug 41999 22 box.setAttribute("style", "height:500px;width:500px;");
22 if (window.testRunner) { 23 iframe.contentDocument.body.offsetWidth; // See bug 41999
23 testRunner.dumpAsText(); 24 if (window.testRunner) {
24 document.getElementById('layertree').innerText = window.internals.layerT reeAsText(document); 25 testRunner.dumpAsText();
25 } 26 document.getElementById('layertree').innerText = window.internals.laye rTreeAsText(document);
27 testRunner.notifyDone();
28 }
29 });
26 } 30 }
27 window.addEventListener("load", doTest, false); 31 window.addEventListener("load", doTest, false);
28 </script> 32 </script>
29 </head> 33 </head>
30 <body> 34 <body>
31 <iframe id="parent-iframe" src="resources/subframe-small.html"></iframe> 35 <iframe id="parent-iframe" src="resources/subframe-small.html"></iframe>
32 <pre id="layertree"></p> 36 <pre id="layertree"></p>
33 </body> 37 </body>
34 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698