OLD | NEW |
| (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> | |
OLD | NEW |