Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-pause-empty-events.html
blob9c157db9a6b3531a30f7d2e1575a9df0b2e3a17d
1 <video controls></video>
2 <p>Test that pause() from EMPTY network state triggers load()</p>
3 <script src=media-file.js></script>
4 <script src=video-test.js></script>
5 <script>
6 video.src = findMediaFile("video", "content/test");
7 testExpected("video.networkState", HTMLMediaElement.NETWORK_NO_SOURCE);
9 waitForEvent("loadstart");
10 waitForEvent("ratechange");
11 waitForEvent("waiting");
12 waitForEvent("ratechange");
13 waitForEvent("durationchange");
14 waitForEvent("loadedmetadata");
15 waitForEvent("loadeddata");
16 waitForEvent("canplay");
17 waitForEventAndEnd("canplaythrough");
19 run("video.pause()");
20 consoleWrite("SCRIPT DONE");
21 </script>