Fix API test after r241728
[WebKit-https.git] / Tools / TestWebKitAPI / Tests / WebKitCocoa / full-size-autoplaying-video-with-audio.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <style>
5         video {
6             width: 100vw;
7             height: 100vh;
8         }
9     </style>
10     <script>
11         function finishTest()
12         {
13             // As of this writing, two times through the run loop is long enough for the controls to come up.
14             // There's no guarantee; whether the controls are visible is not web exposed, so it doesn't have
15             // to happen in a certain number of timeouts.
16             setTimeout(function() {
17                 setTimeout(function() {
18                     webkit.messageHandlers.testHandler.postMessage("playing");
19                 }, 0);
20             }, 0);
21         }
22     </script>
23 </head>
24 <body>
25     <video autoplay src="video-with-audio.mp4" webkit-playsinline onplaying=finishTest()></video>
26 </body>
27 </html>