Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / full-screen-remove.html
blob33d937c02f5fdb51ac982ed86da8ea723ead65ad
1 <body>
2 <script src="full-screen-test.js"></script>
3 <div><span></span></div>
4 <script>
5 var callback;
6 var fullscreenChanged = function(event)
8 if (callback)
9 callback(event)
11 waitForEvent(document, 'webkitfullscreenchange', fullscreenChanged);
13 var span = document.getElementsByTagName('span')[0];
15 var spanEnteredFullScreen = function(event) {
16 callback = spanExitedFullScreen;
17 testExpected("document.webkitCurrentFullScreenElement", span);
18 span.parentNode.removeChild(span);
21 var spanExitedFullScreen = function(event) {
22 callback = null;
23 testExpected("document.webkitCurrentFullScreenElement", null);
24 endTest();
27 callback = spanEnteredFullScreen;
28 runWithKeyDown(function(){span.webkitRequestFullScreen()});
29 </script>