OLD | NEW |
(Empty) | |
| 1 <body> |
| 2 <script src="full-screen-test.js"></script> |
| 3 <video id="video" width="300"></video> |
| 4 <div>Tests for the fullscreenEnabled setting which will be set to false |
| 5 in those platforms where fullscreen is not supported. |
| 6 <script> |
| 7 if (window.internals) { |
| 8 window.internals.settings.setFullscreenEnabled(false); |
| 9 |
| 10 // Bail out early if the full screen API is not enabled or is missing: |
| 11 if (Element.prototype.webkitRequestFullScreen == undefined) { |
| 12 logResult(false, "Element.prototype.webkitRequestFullScreen == undef
ined"); |
| 13 endTest(); |
| 14 } else { |
| 15 waitForEvent(document, 'webkitfullscreenchange', function() { |
| 16 logResult("Entered full screen.", false); |
| 17 endTest(); |
| 18 }); |
| 19 waitForEventAndEnd(document, 'webkitfullscreenerror'); |
| 20 runWithKeyDown(function(){document.getElementById('video').webkitReq
uestFullScreen()}); |
| 21 } |
| 22 } |
| 23 </script> |
| 24 |
OLD | NEW |