Index: LayoutTests/fullscreen/full-screen-request-not-enabled.html |
diff --git a/LayoutTests/fullscreen/full-screen-request-not-enabled.html b/LayoutTests/fullscreen/full-screen-request-not-enabled.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..72a02e97edae208f77d78ccbb0a3558f8c3a76b6 |
--- /dev/null |
+++ b/LayoutTests/fullscreen/full-screen-request-not-enabled.html |
@@ -0,0 +1,24 @@ |
+<body> |
+<script src="full-screen-test.js"></script> |
+<video id="video" width="300"></video> |
+<div>Tests for the fullscreenEnabled setting which will be set to false |
+in those platforms where fullscreen is not supported. |
+<script> |
+ if (window.internals) { |
+ window.internals.settings.setFullscreenEnabled(false); |
+ |
+ // Bail out early if the full screen API is not enabled or is missing: |
+ if (Element.prototype.webkitRequestFullScreen == undefined) { |
+ logResult(false, "Element.prototype.webkitRequestFullScreen == undefined"); |
+ endTest(); |
+ } else { |
+ waitForEvent(document, 'webkitfullscreenchange', function() { |
+ logResult("Entered full screen.", false); |
+ endTest(); |
+ }); |
+ waitForEventAndEnd(document, 'webkitfullscreenerror'); |
+ runWithKeyDown(function(){document.getElementById('video').webkitRequestFullScreen()}); |
+ } |
+ } |
+</script> |
+ |