Index: LayoutTests/fullscreen/video-fail-to-enter-full-screen.html |
diff --git a/LayoutTests/fullscreen/video-fail-to-enter-full-screen.html b/LayoutTests/fullscreen/video-fail-to-enter-full-screen.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3ffdc7b2ad966dd807cafa07ce376386fc361d46 |
--- /dev/null |
+++ b/LayoutTests/fullscreen/video-fail-to-enter-full-screen.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<body> |
esprehn
2014/07/21 21:21:57
Leave out body
qinmin
2014/07/22 01:55:01
Done.
|
+ <p>This tests that the video should not be rendered in full screen if requestFullScreen() fails.</p> |
+ <video id="video" width="300"></video> |
+ <script> |
+ if (window.internals) |
+ runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEnabled; |
+ </script> |
+ <script src="full-screen-test.js"></script> |
+ <script src="../media/media-controls.js"></script> |
+ <script> |
+ var video = document.getElementById('video'); |
+ video.webkitRequestFullScreen(); |
+ setTimeout(function() { |
+ endTest(); |
+ }, 300); |
+ </script> |
+</body> |