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

Side by Side Diff: LayoutTests/compositing/iframes/leave-compositing-iframe.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style type="text/css" media="screen"> 5 <style type="text/css" media="screen">
6 iframe { 6 iframe {
7 border: 10px solid black; 7 border: 10px solid black;
8 padding: 5px; 8 padding: 5px;
9 margin: 20px; 9 margin: 20px;
10 height: 150px; 10 height: 150px;
(...skipping 14 matching lines...) Expand all
25 <script type="text/javascript" charset="utf-8"> 25 <script type="text/javascript" charset="utf-8">
26 if (window.testRunner) { 26 if (window.testRunner) {
27 testRunner.dumpAsText(); 27 testRunner.dumpAsText();
28 testRunner.waitUntilDone(); 28 testRunner.waitUntilDone();
29 } 29 }
30 30
31 // Called from subframe. 31 // Called from subframe.
32 function testDone() 32 function testDone()
33 { 33 {
34 document.getElementById('parent-iframe').contentDocument.body.offsetWidth; // work around bug 41999. 34 document.getElementById('parent-iframe').contentDocument.body.offsetWidth; // work around bug 41999.
35 if (window.testRunner)
36 testRunner.display();
37
38 if (window.testRunner) { 35 if (window.testRunner) {
39 document.getElementById('layers').innerText = window.internals.layerTree AsText(document); 36 document.getElementById('layers').innerText = window.internals.layerTree AsText(document);
40 testRunner.notifyDone(); 37 testRunner.notifyDone();
41 } 38 }
42 } 39 }
43 </script> 40 </script>
44 </head> 41 </head>
45 <body> 42 <body>
46 43
47 <!-- The parent document may into compositing mode by the iframe. --> 44 <!-- The parent document may into compositing mode by the iframe. -->
48 <iframe id="parent-iframe" src="resources/leave-compositing-subframe.html">< /iframe> 45 <iframe id="parent-iframe" src="resources/leave-compositing-subframe.html">< /iframe>
49 46
50 <div class="overlay"> 47 <div class="overlay">
51 </div> 48 </div>
52 49
53 <pre id="layers">Layer tree appears here in DRT.</pre> 50 <pre id="layers">Layer tree appears here in DRT.</pre>
54 </body> 51 </body>
55 </html> 52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698