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 set
6 in those platforms where fullscreen for non-media elements is not supported.
8 if (window.internals) {
9 window.internals.settings.setDisallowFullscreenForNonMediaElements(true);
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').webkitRequestFullScreen()});
17 // Fullscreen for non media elements is not supported.
18 waitForEventOnce(document, 'webkitfullscreenerror', testStep2);
19 runWithKeyDown(function(){document.getElementById('span').webkitRequestFullScreen()})