4 <title>Test the prefixed HTMLVideoElement fullscreen API
</title>
5 <script src=
"media-file.js"></script>
6 <script src=
"video-test.js"></script>
11 testExpected("video.webkitSupportsFullscreen", true);
12 testExpected("video.webkitDisplayingFullscreen", false);
13 video
.src
= findMediaFile("video", "content/test");
14 waitForEvent("loadeddata", loadeddata
);
19 testExpected("video.webkitSupportsFullscreen", true);
20 testExpected("video.webkitDisplayingFullscreen", false);
21 run("video.webkitEnterFullscreen()");
22 waitForEvent("webkitfullscreenerror", fullscreenerror
);
25 function fullscreenerror()
27 testExpected("video.webkitSupportsFullscreen", true);
28 testExpected("video.webkitDisplayingFullscreen", false);
29 document
.onclick = function()
31 run("video.webkitEnterFullscreen()");
32 waitForEventOnce("webkitfullscreenchange", fullscreenenter
);
34 eventSender
.mouseDown();
35 eventSender
.mouseUp();
38 function fullscreenenter()
40 testExpected("video.webkitSupportsFullscreen", true);
41 testExpected("video.webkitDisplayingFullscreen", true);
42 run("video.webkitExitFullscreen()");
43 waitForEvent("webkitfullscreenchange", fullscreenexit
);
46 function fullscreenexit()
48 testExpected("video.webkitSupportsFullscreen", true);
49 testExpected("video.webkitDisplayingFullscreen", false);
54 <body onload=
"start()">
55 <p>Test the prefixed HTMLVideoElement fullscreen API
</p>