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

Side by Side Diff: LayoutTests/compositing/iframes/connect-compositing-iframe2.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 -webkit-transform: translateZ(0); 14 -webkit-transform: translateZ(0);
14 } 15 }
15 16
16 .overlay { 17 .overlay {
17 position: absolute; 18 position: absolute;
18 width: 50px; 19 width: 50px;
19 height: 50px; 20 height: 50px;
20 top: 5px; 21 top: 5px;
21 left: 5px; 22 left: 5px;
22 background-color: rgba(0, 0, 0, 0.2); 23 background-color: rgba(0, 0, 0, 0.2);
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('iframe').className = 'composited';
36 37
37 document.getElementById('iframe').className = 'composited'; 38 if (window.testRunner) {
38 39 document.getElementById('layers').innerText = window.internals.layerTr eeAsText(document);
39 if (window.testRunner) { 40 testRunner.notifyDone();
40 document.getElementById('layers').innerText = window.internals.layerTree AsText(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 <!-- Test with already-composited iframe, and iframe contents becoming compo sited. --> 50 <!-- Test with already-composited iframe, and iframe contents becoming compo sited. -->
51 <iframe id="iframe" src="resources/composited-subframe.html"></iframe> 51 <iframe id="iframe" src="resources/composited-subframe.html"></iframe>
52 52
53 <div class="overlay"> 53 <div class="overlay">
54 </div> 54 </div>
55 55
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