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

Unified Diff: LayoutTests/media/video-prefixed-fullscreen.html

Issue 213193010: Restore the HTMLVideoElement-specific prefixed fullscreen API behind a flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revive full-screen-iframe-legacy.html Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/media/video-prefixed-fullscreen.html
diff --git a/LayoutTests/media/video-prefixed-fullscreen.html b/LayoutTests/media/video-prefixed-fullscreen.html
new file mode 100644
index 0000000000000000000000000000000000000000..e00062fbf510d0254cee83bf9e840a1b31af7a0a
--- /dev/null
+++ b/LayoutTests/media/video-prefixed-fullscreen.html
@@ -0,0 +1,58 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Test the prefixed HTMLVideoElement fullscreen API</title>
+ <script src="media-file.js"></script>
+ <script src="video-test.js"></script>
+ <script>
+ function start()
+ {
+ findMediaElement();
+ testExpected("video.webkitSupportsFullscreen", false);
+ testExpected("video.webkitDisplayingFullscreen", false);
+ video.src = findMediaFile("video", "content/test");
+ waitForEvent("loadeddata", loadeddata);
+ }
+
+ function loadeddata()
+ {
+ testExpected("video.webkitSupportsFullscreen", true);
+ testExpected("video.webkitDisplayingFullscreen", false);
+ run("video.webkitEnterFullscreen()");
+ waitForEvent("webkitfullscreenerror", fullscreenerror);
+ }
+
+ function fullscreenerror()
+ {
+ testExpected("video.webkitSupportsFullscreen", true);
+ testExpected("video.webkitDisplayingFullscreen", false);
+ document.onclick = function()
+ {
+ run("video.webkitEnterFullscreen()");
+ waitForEventOnce("webkitfullscreenchange", fullscreenenter);
+ };
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ }
+
+ function fullscreenenter()
+ {
+ testExpected("video.webkitSupportsFullscreen", true);
+ testExpected("video.webkitDisplayingFullscreen", true);
+ run("video.webkitExitFullscreen()");
+ waitForEvent("webkitfullscreenchange", fullscreenexit);
+ }
+
+ function fullscreenexit()
+ {
+ testExpected("video.webkitSupportsFullscreen", true);
+ testExpected("video.webkitDisplayingFullscreen", false);
+ endTest();
+ }
+ </script>
+ </head>
+ <body onload="start()">
+ <p>Test the prefixed HTMLVideoElement fullscreen API</p>
+ <video></video>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698