OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <script src="../resources/js-test.js"></script> | |
3 <script> | |
4 if (window.testRunner) { | |
5 testRunner.dumpAsText(); | |
6 testRunner.waitUntilDone(); | |
7 } | |
8 | |
9 function runWithKeyDown(fn) | |
10 { | |
11 document.addEventListener('keydown', function() { fn(); }, false); | |
12 if (window.testRunner) { | |
13 eventSender.keyDown('a'); | |
14 } | |
15 } | |
16 | |
17 function init() { | |
18 runWithKeyDown(goFullScreen); | |
19 } | |
20 | |
21 function goFullScreen() { | |
22 var iframe = document.getElementById('block1'); | |
23 var element = iframe.contentDocument.documentElement; | |
24 setTimeout(function () { | |
25 iframe.parentNode.removeChild(iframe); | |
26 gc(); | |
27 setTimeout(function () { | |
28 if (window.testRunner) { | |
29 testRunner.notifyDone(); | |
30 } | |
31 }, 0); | |
32 }, 0); | |
33 element.webkitRequestFullScreen(); | |
34 shouldNotBe("document.webkitFullscreenElement", "null"); | |
35 } | |
36 </script> | |
37 <body onload="init()"> | |
38 <iframe allowfullscreen src="resources/inner.html" id="block1"></iframe> | |
39 PASS | |
40 </body> | |
OLD | NEW |