jer.noble@apple.com | f8a263b | 2011-04-12 22:46:01 +0000 | [diff] [blame] | 1 | <body> |
| 2 | <video id="video" width="300" controls></video> |
| 3 | <script src="full-screen-test.js"></script> |
| 4 | <script src=../media/media-file.js></script> |
| 5 | <script> |
| 6 | setSrcById("video", findMediaFile("video", "../media/content/test")); |
| 7 | var video = document.getElementById('video'); |
jer.noble@apple.com | f8a263b | 2011-04-12 22:46:01 +0000 | [diff] [blame] | 8 | // Bail out early if the full screen API is not enabled or is missing: |
| 9 | if (Element.prototype.webkitRequestFullScreen == undefined) { |
| 10 | logResult(false, "Element.prototype.webkitRequestFullScreen == undefined"); |
| 11 | endTest(); |
| 12 | } else { |
commit-queue@webkit.org | 4623cd4 | 2011-11-19 06:05:05 +0000 | [diff] [blame] | 13 | waitForEventTestAndEnd(document, 'webkitfullscreenchange', "video.clientWidth==document.body.clientWidth"); |
jer.noble@apple.com | f8a263b | 2011-04-12 22:46:01 +0000 | [diff] [blame] | 14 | runWithKeyDown(function(){video.webkitRequestFullScreen()}); |
| 15 | } |
| 16 | </script> |
commit-queue@webkit.org | 4623cd4 | 2011-11-19 06:05:05 +0000 | [diff] [blame] | 17 | </body> |