Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: LayoutTests/fullscreen/api/document-fullscreen-element.html

Issue 395633011: Implement the unprefixed the Fullscreen API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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)
9 {
10 var div = document.querySelector("div");
11
12 document.onfullscreenchange = t.step_func(function()
13 {
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()");
18
19 document.onfullscreenchange = t.step_func(function()
20 {
21 assert_equals(document.fullscreenElement, null, "fullscreenElement a fter exiting fullscreen");
22 t.done();
23 });
24 });
25
26 trusted_event(t.step_func(function()
27 {
28 assert_equals(document.fullscreenElement, null, "fullscreenElement befor e 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>
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/api/document-exit-fullscreen.html ('k') | LayoutTests/fullscreen/api/document-fullscreen-enabled.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698