Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-playing-and-pause.html
blobd19c904d39d86d561cb8beb68690e53f00e76a3c
1 <!DOCTYPE HTML>
2 <html>
3 <body>
4 <video id="testVideo" controls></video>
5 <div id="log"></div>
6 <p>Test that pausing the media element in "playing" event handler pauses the media element.</p>
7 <script src="./w3c-media-utils.js"></script>
8 <script src="../resources/testharness.js"></script>
9 <script src="../resources/testharnessreport.js"></script>
10 <script>
11 async_test(function(test)
13 var video = document.getElementById("testVideo");
14 video.src = getVideoURI("test");
15 waitForEventAndRunStep("timeupdate", video);
16 waitForEventAndRunStep("playing", video, function ()
18 video.pause();
19 });
20 // function to be run when "pause" fires.
21 var pauseCheck = function()
23 assert_true(video.paused, "Video is paused.");
24 test.done();
26 waitForEventAndRunStep("pause", video, pauseCheck, test);
27 video.play();
28 }, "Verifies pause actually pauses.");
29 </script>
30 </body>
31 </html>