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

Unified Diff: LayoutTests/fullscreen/full-screen-request-not-enabled.html

Issue 428633004: Webkit setting for embedders that do not support fullscreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: nits Created 6 years, 5 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/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>
+

Powered by Google App Engine
This is Rietveld 408576698