blob: fadc343ed343e444dd401c257ace19233131f586 [file] [log] [blame]
jer.noble@apple.comf8a263b2011-04-12 22:46:01 +00001<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.comf8a263b2011-04-12 22:46:01 +00008 // 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.org4623cd42011-11-19 06:05:05 +000013 waitForEventTestAndEnd(document, 'webkitfullscreenchange', "video.clientWidth==document.body.clientWidth");
jer.noble@apple.comf8a263b2011-04-12 22:46:01 +000014 runWithKeyDown(function(){video.webkitRequestFullScreen()});
15 }
16 </script>
commit-queue@webkit.org4623cd42011-11-19 06:05:05 +000017</body>