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

Unified Diff: LayoutTests/media/media-player-request-fullscreen.html

Issue 209693003: Make mediaPlayerRequestFullscreen() user gesture bypass explicit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/media-player-request-fullscreen.html
diff --git a/LayoutTests/media/media-player-request-fullscreen.html b/LayoutTests/media/media-player-request-fullscreen.html
new file mode 100644
index 0000000000000000000000000000000000000000..8d25cccef6480091aa798fa16b9f6deac54b2ef9
--- /dev/null
+++ b/LayoutTests/media/media-player-request-fullscreen.html
@@ -0,0 +1,22 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Test mediaPlayerRequestFullscreen() without a user gesture.</title>
+ <script src=media-file.js></script>
+ <script src=video-test.js></script>
+ </head>
+ <body>
+ <p>Test mediaPlayerRequestFullscreen() without a user gesture.</p>
+ <video controls></video>
+ <script>
+ findMediaElement();
+ video.src = findMediaFile("video", "content/test");
+ waitForEvent('loadedmetadata', function()
+ {
+ internals.mediaPlayerRequestFullscreen(video);
+ waitForEvent('webkitfullscreenchange', endTest);
+ waitForEventAndFail('webkitfullscreenerror');
+ });
+ </script>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/media/media-player-request-fullscreen-expected.txt » ('j') | Source/core/html/HTMLMediaElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698