Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-play-pause-events.html
blob87ec7812f2bb0c63c3fb24ee064c274c1324fe4b
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>
5 <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");
17 waitForEvent("play");
18 waitForEvent("timeupdate");
19 waitForEvent('pause', function () { testExpected("video.paused", true); endTest(); } );
22 run("video.play()");
23 run("video.pause()");
25 consoleWrite("SCRIPT DONE");
26 </script>