| OLD | NEW |
| 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 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 26 if (window.testRunner) { | 27 if (window.testRunner) { |
| 27 testRunner.dumpAsText(); | 28 testRunner.dumpAsText(); |
| 28 testRunner.waitUntilDone(); | 29 testRunner.waitUntilDone(); |
| 29 } | 30 } |
| 30 | 31 |
| 31 // Called from subframe. | 32 // Called from subframe. |
| 32 function testDone() | 33 function testDone() |
| 33 { | 34 { |
| 34 document.getElementById('parent-iframe').contentDocument.body.offsetWidth;
// work around bug 41999. | 35 document.getElementById('parent-iframe').contentDocument.body.offsetWidth;
// work around bug 41999. |
| 35 if (window.testRunner) { | 36 if (window.testRunner) { |
| 36 testRunner.display(); | 37 runAfterDisplay(function() { |
| 37 document.getElementById('layers').innerText = window.internals.layerTree
AsText(document); | 38 document.getElementById('layers').innerText = window.internals.layerTr
eeAsText(document); |
| 38 testRunner.notifyDone(); | 39 testRunner.notifyDone(); |
| 40 }); |
| 39 } | 41 } |
| 40 } | 42 } |
| 41 </script> | 43 </script> |
| 42 </head> | 44 </head> |
| 43 <body> | 45 <body> |
| 44 | 46 |
| 45 <!-- The parent document may into compositing mode by the iframe. --> | 47 <!-- The parent document may into compositing mode by the iframe. --> |
| 46 <iframe id="parent-iframe" src="resources/enter-compositing-subframe.html"><
/iframe> | 48 <iframe id="parent-iframe" src="resources/enter-compositing-subframe.html"><
/iframe> |
| 47 | 49 |
| 48 <div class="overlay"> | 50 <div class="overlay"> |
| 49 </div> | 51 </div> |
| 50 | 52 |
| 51 <pre id="layers">Layer tree appears here in DRT.</pre> | 53 <pre id="layers">Layer tree appears here in DRT.</pre> |
| 52 </body> | 54 </body> |
| 53 </html> | 55 </html> |
| OLD | NEW |