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> |