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

Side by Side Diff: LayoutTests/compositing/iframes/connect-compositing-iframe3.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 .composited { 16 .composited {
16 -webkit-transform: translateZ(0); 17 -webkit-transform: translateZ(0);
17 } 18 }
18 19
19 </style> 20 </style>
20 <script type="text/javascript" charset="utf-8"> 21 <script type="text/javascript" charset="utf-8">
21 if (window.testRunner) { 22 if (window.testRunner) {
22 testRunner.dumpAsText(); 23 testRunner.dumpAsText();
23 testRunner.waitUntilDone(); 24 testRunner.waitUntilDone();
24 } 25 }
25 26
26 function doTest() 27 function doTest()
27 { 28 {
28 if (window.testRunner) 29 runAfterDisplay(function() {
29 testRunner.display(); 30 document.getElementById('iframe').className = 'composited';
30 31
31 document.getElementById('iframe').className = 'composited'; 32 if (window.testRunner) {
32 33 document.getElementById('layers').innerText = window.internals.layerTr eeAsText(document);
33 if (window.testRunner) { 34 testRunner.notifyDone();
34 document.getElementById('layers').innerText = window.internals.layerTree AsText(document); 35 }
35 testRunner.notifyDone(); 36 });
36 }
37 } 37 }
38 38
39 window.addEventListener('load', doTest, false); 39 window.addEventListener('load', doTest, false);
40 </script> 40 </script>
41 </head> 41 </head>
42 <body> 42 <body>
43 43
44 <!-- Test with already-composited iframe contents, and iframe itself composi ted. --> 44 <!-- Test with already-composited iframe contents, and iframe itself composi ted. -->
45 <iframe id="iframe" src="resources/composited-subframe.html"></iframe> 45 <iframe id="iframe" src="resources/composited-subframe.html"></iframe>
46 46
47 <pre id="layers">Layer tree appears here in DRT.</pre> 47 <pre id="layers">Layer tree appears here in DRT.</pre>
48 </body> 48 </body>
49 </html> 49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698