2 <script src=
"../resources/js-test.js"></script>
4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
9 function runWithKeyDown(fn
)
11 document
.addEventListener('keydown', function() { fn(); }, false);
12 if (window
.testRunner
) {
13 eventSender
.keyDown('a');
18 runWithKeyDown(goFullScreen
);
21 function goFullScreen() {
22 var iframe
= document
.getElementById('block1');
23 var element
= iframe
.contentDocument
.documentElement
;
24 setTimeout(function () {
25 iframe
.parentNode
.removeChild(iframe
);
27 setTimeout(function () {
28 if (window
.testRunner
) {
29 testRunner
.notifyDone();
33 element
.webkitRequestFullScreen();
34 shouldNotBe("document.webkitFullscreenElement", "null");
37 <body onload=
"init()">
38 <iframe allowfullscreen
src=
"resources/inner.html" id=
"block1"></iframe>