Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / full-screen-cancel-nested.html
blob999b2814d5eb31590e518ae63a00ef2708fdd754
1 <!DOCTYPE html>
2 <script src="full-screen-test.js"></script>
3 <p>Test that webkitCancelFullScreen only exits one level of fullscreen</p>
4 <div><span></span></div>
5 <script>
6 var callback;
7 function fullscreenChanged(event)
9 if (callback)
10 callback(event)
12 waitForEvent(document, "webkitfullscreenchange", fullscreenChanged);
14 var div = document.querySelector("div");
15 function divEnteredFullScreen()
17 testExpected("document.webkitCurrentFullScreenElement", div);
18 callback = spanEnteredFullScreen;
19 runWithKeyDown(function() { span.webkitRequestFullScreen(); });
22 var span = document.querySelector("span");
23 function spanEnteredFullScreen()
25 testExpected("document.webkitCurrentFullScreenElement", span);
26 callback = cancelledFullScreen;
27 document.webkitCancelFullScreen();
30 function cancelledFullScreen()
32 testExpected("document.webkitCurrentFullScreenElement", div);
33 endTest();
36 callback = divEnteredFullScreen;
37 runWithKeyDown(function() { div.webkitRequestFullScreen(); });
38 </script>