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

Side by Side Diff: LayoutTests/compositing/iframes/connect-compositing-iframe-delayed.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 margin: 20px; 10 margin: 20px;
10 height: 150px; 11 height: 150px;
11 width: 300px; 12 width: 300px;
12 -webkit-box-shadow: 0 0 20px black; 13 -webkit-box-shadow: 0 0 20px black;
13 } 14 }
14 15
15 #box { 16 #box {
16 height: 100px; 17 height: 100px;
17 width: 100px; 18 width: 100px;
18 background-color: blue; 19 background-color: blue;
19 } 20 }
20 21
21 .composited { 22 .composited {
22 -webkit-transform: translateZ(0); 23 -webkit-transform: translateZ(0);
23 } 24 }
24 25
25 </style> 26 </style>
26 <script type="text/javascript" charset="utf-8"> 27 <script type="text/javascript" charset="utf-8">
27 if (window.testRunner) { 28 if (window.testRunner) {
28 testRunner.dumpAsText(); 29 testRunner.dumpAsText();
29 testRunner.waitUntilDone(); 30 testRunner.waitUntilDone();
30 } 31 }
31 32
32 function doTest() 33 function doTest()
33 { 34 {
34 if (window.testRunner) 35 runAfterDisplay(function() {
35 testRunner.display(); 36 document.getElementById('box').className = 'composited';
36 37 if (window.testRunner) {
37 document.getElementById('box').className = 'composited'; 38 document.getElementById('iframe').contentDocument.body.offsetWidth ; // update iframe layout
38 if (window.testRunner) { 39 document.getElementById('layers').innerText = window.internals.lay erTreeAsText(document);
39 document.getElementById('iframe').contentDocument.body.offsetWidth; // update iframe layout 40 testRunner.notifyDone();
40 document.getElementById('layers').innerText = window.internals.layerTr eeAsText(document); 41 }
41 testRunner.notifyDone(); 42 });
42 }
43 } 43 }
44 44
45 window.addEventListener('load', doTest, false); 45 window.addEventListener('load', doTest, false);
46 </script> 46 </script>
47 </head> 47 </head>
48 <body> 48 <body>
49 49
50 <div id="box"></div> 50 <div id="box"></div>
51 51
52 <!-- Test with already-composited iframe contents, and iframe itself composi ted. --> 52 <!-- Test with already-composited iframe contents, and iframe itself composi ted. -->
53 <iframe id="iframe" src="resources/composited-subframe.html"></iframe> 53 <iframe id="iframe" src="resources/composited-subframe.html"></iframe>
54 54
55 <p>When the parent document becomes composited, the layer trees should get c onnected together.</p> 55 <p>When the parent document becomes composited, the layer trees should get c onnected together.</p>
56 <pre id="layers">Layer tree appears here in DRT.</pre> 56 <pre id="layers">Layer tree appears here in DRT.</pre>
57 </body> 57 </body>
58 </html> 58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698