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

Side by Side Diff: LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements.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: Rename to fullscreenSupported 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <body>
2 <script src="full-screen-test.js"></script>
3 <span id="span" width="300"></span>
4 <video id="video" width="300"></video>
5 <div>Tests for the disallowFullscreenForNonMediaElements setting which will be s et
6 in those platforms where fullscreen for non-media elements is not supported.
7 <script>
8 if (window.internals) {
9 window.internals.settings.setDisallowFullscreenForNonMediaElements(true) ;
10
11 var testStep2 = function() {
12 // Fullscreen for media elements is supported, video in this case.
13 waitForEventAndEnd(document, 'webkitfullscreenchange');
14 runWithKeyDown(function(){document.getElementById('video').webkitReq uestFullScreen()});
15 };
16
17 // Fullscreen for non media elements is not supported.
18 waitForEventOnce(document, 'webkitfullscreenerror', testStep2);
19 runWithKeyDown(function(){document.getElementById('span').webkitRequestF ullScreen()})
20 }
21 </script>
22 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-request-disallow-for-non-media-elements-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698