2 <script src=
"full-screen-test.js"></script>
3 <p>This tests that full screen mode does not allow alphanumeric key events. Press space to continue, then press the 'a' key.
7 var fullscreenChanged = function(event
)
12 waitForEvent(document
, 'webkitfullscreenchange', fullscreenChanged
);
14 var spanEnteredFullScreen = function() {
16 testExpected("document.webkitIsFullScreen", true);
17 if (window
.testRunner
&& eventSender
.keyDown
) {
18 waitForEvent(document
, 'keypress', keyPressed
);
19 eventSender
.keyDown('a', []);
23 var keyPressed = function(event
) {
24 testExpected('event.keyCode', 97); // 'A'
28 var span
= document
.getElementsByTagName('span')[0];
29 callback
= spanEnteredFullScreen
;
30 runWithKeyDown(function(){span
.webkitRequestFullScreen(Element
.ALLOW_KEYBOARD_INPUT
)});