OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Test that the controls attribute is not affected by fullscreen</t
itle> |
| 5 <script src="media-file.js"></script> |
| 6 <script src="video-test.js"></script> |
| 7 <script> |
| 8 function start() |
| 9 { |
| 10 findMediaElement(); |
| 11 video.src = findMediaFile("video", "content/test"); |
| 12 waitForEvent("loadeddata", loadeddata); |
| 13 } |
| 14 |
| 15 function loadeddata() |
| 16 { |
| 17 testExpected("video.controls", false); |
| 18 waitForEventOnce("webkitfullscreenchange", fullscreenchange); |
| 19 document.addEventListener("click", function() |
| 20 { |
| 21 run("video.webkitRequestFullscreen()"); |
| 22 }); |
| 23 eventSender.mouseDown(); |
| 24 eventSender.mouseUp(); |
| 25 } |
| 26 |
| 27 function fullscreenchange() |
| 28 { |
| 29 testExpected("video.controls", false); |
| 30 endTest(); |
| 31 } |
| 32 </script> |
| 33 </head> |
| 34 <body onload="start()"> |
| 35 <p>Test that the controls attribute is not affected by fullscreen</p> |
| 36 <video></video> |
| 37 </body> |
| 38 </html> |
OLD | NEW |