Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / full-screen-prefixed-and-unprefixed.html
blobaac7d6ae7f102d5d47f5c47d7ba6249f5c105c6e
1 <!DOCTYPE html>
2 <title>Mixed prefixed and unprefixed requests</title>
3 <script src="full-screen-test.js"></script>
4 <div><span></span></div>
5 <script>
6 var callback;
7 function fullscreenChanged(event)
9 if (callback)
10 callback(event)
12 waitForEvent(document, "fullscreenchange", fullscreenChanged);
13 waitForEvent(document, "webkitfullscreenchange", fullscreenChanged);
15 var div = document.querySelector("div");
16 var span = document.querySelector("span");
18 function divEnteredFullscreen()
20 testExpected("document.fullscreenElement", div);
21 testExpected("document.webkitFullscreenElement", div);
22 callback = spanEnteredFullscreen;
23 runWithKeyDown(function() { span.requestFullscreen(); });
26 function spanEnteredFullscreen()
28 testExpected("document.fullscreenElement", span);
29 testExpected("document.webkitFullscreenElement", span);
30 callback = spanExitedFullscreen;
31 document.webkitExitFullscreen();
34 function spanExitedFullscreen()
36 testExpected("document.fullscreenElement", div);
37 testExpected("document.webkitFullscreenElement", div);
38 callback = divExitedFullscreen;
39 document.webkitExitFullscreen();
42 function divExitedFullscreen()
44 testExpected("document.fullscreenElement", null);
45 testExpected("document.webkitFullscreenElement", null);
46 endTest();
49 callback = divEnteredFullscreen;
50 runWithKeyDown(function() { div.webkitRequestFullscreen(); });
51 </script>