4 <script src=
"../resources/js-test.js"></script>
8 Tests that a table-section element can be used in full screen mode.
10 <div id=
"test" style=
"display: table-footer-group">Test Element
</div>
12 Hit Enter to run if not in test runner.
15 if (window
.testRunner
) {
16 testRunner
.dumpAsText();
17 testRunner
.waitUntilDone();
20 var testElement
= document
.getElementById('test');
22 document
.addEventListener('webkitfullscreenchange', function(e
) {
23 if (document
.webkitFullscreenElement
) {
24 shouldBe("document.webkitFullscreenElement.id", "'test'");
25 document
.webkitCancelFullScreen();
26 if (window
.testRunner
)
27 testRunner
.notifyDone();
29 }, false /* useCapture */);
31 document
.addEventListener("keydown", function(e
) {
32 if (e
.keyCode
== 13 /* Enter */)
33 testElement
.webkitRequestFullscreen();
34 }, false /* useCapture */);
36 if (window
.eventSender
)
37 eventSender
.keyDown("\n");