simon.fraser@apple.com | 47560da | 2011-10-21 03:02:05 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <style> |
| 4 | iframe { |
| 5 | visibility: hidden; |
| 6 | position: absolute; |
| 7 | } |
| 8 | </style> |
| 9 | <script> |
rniwa@webkit.org | 1890413 | 2012-06-11 18:29:22 +0000 | [diff] [blame] | 10 | if (window.testRunner) { |
| 11 | testRunner.dumpAsText(); |
| 12 | testRunner.waitUntilDone(); |
simon.fraser@apple.com | 47560da | 2011-10-21 03:02:05 +0000 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | // Called from subframe. |
| 16 | function testDone() |
| 17 | { |
| 18 | // This timeout is necessary to detect the hang. |
| 19 | window.setTimeout(function() { |
| 20 | document.getElementById('results').innerText = 'PASS: test did not hang.'; |
rniwa@webkit.org | 1890413 | 2012-06-11 18:29:22 +0000 | [diff] [blame] | 21 | if (window.testRunner) |
| 22 | testRunner.notifyDone(); |
simon.fraser@apple.com | 47560da | 2011-10-21 03:02:05 +0000 | [diff] [blame] | 23 | }, 0); |
| 24 | } |
| 25 | </script> |
| 26 | </head> |
| 27 | <body> |
| 28 | <p id="results">This test should not hang.</p> |
| 29 | <iframe src="../iframes/resources/enter-compositing-subframe.html"></iframe> |
| 30 | </body> |
| 31 | </html> |