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

Side by Side Diff: LayoutTests/compositing/iframes/become-composited-nested-iframes.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 body { 7 body {
7 height: 1500px; 8 height: 1500px;
8 margin: 0; 9 margin: 0;
9 } 10 }
10 11
11 #box { 12 #box {
12 height: 100px; 13 height: 100px;
13 width: 100px; 14 width: 100px;
14 background-color: blue; 15 background-color: blue;
(...skipping 11 matching lines...) Expand all
26 } 27 }
27 </style> 28 </style>
28 <script type="text/javascript" charset="utf-8"> 29 <script type="text/javascript" charset="utf-8">
29 if (window.testRunner) { 30 if (window.testRunner) {
30 testRunner.dumpAsText(); 31 testRunner.dumpAsText();
31 testRunner.waitUntilDone(); 32 testRunner.waitUntilDone();
32 } 33 }
33 34
34 function doTest() 35 function doTest()
35 { 36 {
36 // For some reason this delay is required for AppKit to not short-circui t the display. 37 if (window.testRunner) {
37 window.setTimeout(function() { 38 runAfterDisplay(function() {
38 document.getElementById('box').className = 'composited'; 39 document.getElementById('box').className = 'composited';
39 if (window.testRunner) {
40 testRunner.display();
41 document.getElementById('layers').innerHTML = window.internals.lay erTreeAsText(document); 40 document.getElementById('layers').innerHTML = window.internals.lay erTreeAsText(document);
42 testRunner.notifyDone(); 41 testRunner.notifyDone();
43 } 42 });
44 }, 20); 43 }
45 } 44 }
46 45
47 window.addEventListener('load', doTest, false); 46 window.addEventListener('load', doTest, false);
48 </script> 47 </script>
49 </head> 48 </head>
50 <body> 49 <body>
51 <div id="box"></div> 50 <div id="box"></div>
52 51
53 <!-- Tests that when the main document becomes composited, all iframes conta ining 52 <!-- Tests that when the main document becomes composited, all iframes conta ining
54 any composited content become composited --> 53 any composited content become composited -->
55 <iframe src="resources/intermediate-frame.html"></iframe> 54 <iframe src="resources/intermediate-frame.html"></iframe>
56 <iframe src="resources/intermediate-frame.html"></iframe> 55 <iframe src="resources/intermediate-frame.html"></iframe>
57 56
58 <pre id="layers">Layer tree appears here in DRT.</pre> 57 <pre id="layers">Layer tree appears here in DRT.</pre>
59 </body> 58 </body>
60 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698