Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / full-screen-keyboard-enabled.html
blob12cef46ebe26c2349d8a3b0e8918562fb366972c
1 <body>
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.
4 <span></span>
5 <script>
6 var callback;
7 var fullscreenChanged = function(event)
9 if (callback)
10 callback(event)
12 waitForEvent(document, 'webkitfullscreenchange', fullscreenChanged);
14 var spanEnteredFullScreen = function() {
15 callback = null;
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'
25 endTest();
28 var span = document.getElementsByTagName('span')[0];
29 callback = spanEnteredFullScreen;
30 runWithKeyDown(function(){span.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)});
31 </script>