[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / media-play-promise-resolve.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <script src=media-file.js></script>
5         <script src=video-test.js></script>
6
7         <script>
8         var promise;
9         function start()
10         {
11             findMediaElement();
12             run('mediaElement.src = findMediaFile("video", "content/test")');
13             run('mediaElement.play().then(promiseResolved).catch(failTest)');
14         }
15
16         function promiseResolved()
17         {
18             logResult(true, "Promise resolved.");
19             endTest();
20         }
21         </script>
22     </head>
23
24     <body onload="start()">
25
26         <video></video>
27     
28     </body>
29 </html>