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

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

Issue 426593010: Set fullscreenEnabled to false when fullscreen is not supported. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against tot Created 6 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-not-enabled-when-unsupported-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fullscreen/full-screen-not-enabled-when-unsupported.html
diff --git a/LayoutTests/fullscreen/full-screen-not-enabled-when-unsupported.html b/LayoutTests/fullscreen/full-screen-not-enabled-when-unsupported.html
new file mode 100644
index 0000000000000000000000000000000000000000..b173011472def7e040ff62d62b565f4af47c7490
--- /dev/null
+++ b/LayoutTests/fullscreen/full-screen-not-enabled-when-unsupported.html
@@ -0,0 +1,17 @@
+<body>
+<div>This tests that the <code>fullscreenEnabled</code> property is false when fullscreen
+is not supported as laid out in section 4 of the
+<a href="http://fullscreen.spec.whatwg.org/#api">Fullscreen API</a> living
+standard</div>
+<script src="full-screen-test.js"></script>
+<script>
+ window.internals.settings.setFullscreenSupported(false);
+
+ testExpected('document.webkitFullscreenEnabled', false);
+
+ var iframe = document.documentElement.appendChild(document.createElement('iframe'));
+ iframe.setAttribute('allowfullscreen', 'true');
+ testExpected('iframe.contentDocument.webkitFullscreenEnabled', false);
+ endTest();
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-not-enabled-when-unsupported-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698