Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / api / document-fullscreen-element.html
blob3e08e9a14a35dfdfb0c6cfc0963a7a2cbdee1158
1 <!DOCTYPE html>
2 <title>Document.fullscreenElement</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script src="../trusted-event.js"></script>
6 <div id="log"></div>
7 <script>
8 async_test(function(t)
10 var div = document.querySelector("div");
12 document.onfullscreenchange = t.step_func(function()
14 assert_equals(document.fullscreenElement, div, "fullscreenElement before exitFullscreen()");
15 document.exitFullscreen();
16 // FIXME: per spec fullscreenElement should still be div
17 assert_equals(document.fullscreenElement, null, "fullscreenElement after exitFullscreen()");
19 document.onfullscreenchange = t.step_func(function()
21 assert_equals(document.fullscreenElement, null, "fullscreenElement after exiting fullscreen");
22 t.done();
23 });
24 });
26 trusted_event(t.step_func(function()
28 assert_equals(document.fullscreenElement, null, "fullscreenElement before requestFullscreen()");
29 div.requestFullscreen();
30 // FIXME: per spec fullscreenElement should still be null
31 assert_equals(document.fullscreenElement, div, "fullscreenElement after requestFullscreen()");
32 }), document.body);
33 });
34 </script>