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

Side by Side Diff: LayoutTests/compositing/iframes/invisible-nested-iframe-hide.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 <script src="../../resources/run-after-display.js"></script>
5 <style type="text/css" media="screen"> 6 <style type="text/css" media="screen">
6 iframe { 7 iframe {
7 border: 10px solid black; 8 border: 10px solid black;
8 padding: 5px; 9 padding: 5px;
9 height: 150px; 10 height: 150px;
10 width: 300px; 11 width: 300px;
11 -webkit-box-shadow: 0 0 20px black; 12 -webkit-box-shadow: 0 0 20px black;
12 } 13 }
13 .box { 14 .box {
14 height: 200px; 15 height: 200px;
(...skipping 10 matching lines...) Expand all
25 </style> 26 </style>
26 <script type="text/javascript" charset="utf-8"> 27 <script type="text/javascript" charset="utf-8">
27 28
28 if (window.testRunner) { 29 if (window.testRunner) {
29 testRunner.dumpAsText(); 30 testRunner.dumpAsText();
30 testRunner.waitUntilDone(); 31 testRunner.waitUntilDone();
31 } 32 }
32 33
33 function doTest() 34 function doTest()
34 { 35 {
35 window.setTimeout(function() { 36 runAfterDisplay(function() {
36 var div = document.getElementById('invisible'); 37 var div = document.getElementById('invisible');
37 div.style.cssText = "display:none;"; 38 div.style.cssText = "display:none;";
38 if (window.testRunner) { 39 if (window.testRunner) {
39 testRunner.display();
40 document.getElementById('layers').innerHTML = window.internals.layerTr eeAsText(document); 40 document.getElementById('layers').innerHTML = window.internals.layerTr eeAsText(document);
41 testRunner.notifyDone(); 41 testRunner.notifyDone();
42 } 42 }
43 }, 0) 43 });
44 } 44 }
45 45
46 window.addEventListener('load', doTest, false); 46 window.addEventListener('load', doTest, false);
47 </script> 47 </script>
48 </head> 48 </head>
49 <body> 49 <body>
50 50
51 <!-- The nested iframe should disappear when we set it to "diplay:none". --> 51 <!-- The nested iframe should disappear when we set it to "diplay:none". -->
52 <div id="invisible"> 52 <div id="invisible">
53 <iframe src="resources/intermediate-frame.html"></iframe> 53 <iframe src="resources/intermediate-frame.html"></iframe>
54 </div> 54 </div>
55 <div class="box"> 55 <div class="box">
56 </div> 56 </div>
57 <pre id="layers">Layer tree appears here in DRT.</pre> 57 <pre id="layers">Layer tree appears here in DRT.</pre>
58 </body> 58 </body>
59 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698