Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-play-empty-events.html
blob25750e3f50a309a65490e8f3fd4e5da92b552519
1 <html>
2 <body>
4 <video controls></video>
5 <p>Test that play() from EMPTY network state triggers load() and async play event.</p>
6 <script src=media-file.js></script>
7 <script src=video-test.js></script>
8 <script>
9 testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY);
11 waitForEvent("loadstart");
12 waitForEvent("ratechange");
13 waitForEvent("waiting");
14 waitForEvent("ratechange");
15 waitForEvent("durationchange");
16 waitForEvent("loadedmetadata");
17 waitForEvent("loadeddata");
18 waitForEvent("canplay");
19 waitForEvent("play");
21 waitForEvent('playing', function () { testExpected("video.paused", false); endTest(); } );
23 video.src = findMediaFile("video", "content/test");
24 run("video.play()");
25 consoleWrite("SCRIPT DONE");
26 </script>
28 </body>
29 </html>