1 <video controls
></video>
2 <p>Test that calling play() and pause() triggers async play, timeupdate and pause events.
</p>
3 <script src=media-file.js
></script>
4 <script src=video-test.js
></script>
6 video
.src
= findMediaFile("video", "content/test.mp4");
8 waitForEvent("loadstart");
9 waitForEvent("ratechange");
10 waitForEvent("waiting");
11 waitForEvent("ratechange");
12 waitForEvent("durationchange");
13 waitForEvent("loadedmetadata");
14 waitForEvent("loadeddata");
15 waitForEvent("canplay");
16 waitForEvent("canplaythrough");
18 waitForEvent("timeupdate");
19 waitForEvent('pause', function () { testExpected("video.paused", true); endTest(); } );
25 consoleWrite("SCRIPT DONE");