OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 iframe { | 6 iframe { |
7 border: 10px solid black; | 7 border: 10px solid black; |
8 padding: 5px; | 8 padding: 5px; |
9 margin: 20px; | 9 margin: 20px; |
10 height: 150px; | 10 height: 150px; |
(...skipping 12 matching lines...) Expand all Loading... |
23 height: 50px; | 23 height: 50px; |
24 top: 5px; | 24 top: 5px; |
25 left: 5px; | 25 left: 5px; |
26 background-color: rgba(0, 0, 0, 0.2); | 26 background-color: rgba(0, 0, 0, 0.2); |
27 } | 27 } |
28 | 28 |
29 </style> | 29 </style> |
30 <script type="text/javascript" charset="utf-8"> | 30 <script type="text/javascript" charset="utf-8"> |
31 if (window.testRunner) { | 31 if (window.testRunner) { |
32 testRunner.dumpAsText(); | 32 testRunner.dumpAsText(); |
33 testRunner.waitUntilDone(); | |
34 } | 33 } |
35 | 34 |
36 function doTest() | 35 function doTest() |
37 { | 36 { |
38 // For some reason this delay is required for AppKit to not short-circui
t the display. | 37 document.getElementById('parent-iframe').className = 'bigger'; |
39 window.setTimeout(function() { | 38 if (window.testRunner) { |
40 if (window.testRunner) | 39 document.getElementById('layers').innerHTML = window.internals.layer
TreeAsText(document); |
41 testRunner.display(); | 40 } |
42 | |
43 document.getElementById('parent-iframe').className = 'bigger'; | |
44 if (window.testRunner) { | |
45 testRunner.display(); | |
46 document.getElementById('layers').innerHTML = window.internals.l
ayerTreeAsText(document); | |
47 testRunner.notifyDone(); | |
48 } | |
49 }, 0); | |
50 } | 41 } |
51 | 42 |
52 window.addEventListener('load', doTest, false); | 43 window.addEventListener('load', doTest, false); |
53 </script> | 44 </script> |
54 </head> | 45 </head> |
55 <body> | 46 <body> |
56 | 47 |
57 <!-- The parent document may into compositing mode by the iframe. --> | 48 <!-- The parent document may into compositing mode by the iframe. --> |
58 <iframe id="parent-iframe" src="resources/composited-subframe.html"></iframe
> | 49 <iframe id="parent-iframe" src="resources/composited-subframe.html"></iframe
> |
59 | 50 |
60 <div class="overlay"> | 51 <div class="overlay"> |
61 </div> | 52 </div> |
62 | 53 |
63 <pre id="layers">Layer tree appears here in DRT.</pre> | 54 <pre id="layers">Layer tree appears here in DRT.</pre> |
64 </body> | 55 </body> |
65 </html> | 56 </html> |
OLD | NEW |