4 <video id=
"testVideo" controls
></video>
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>
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 ()
20 // function to be run when "pause" fires.
21 var pauseCheck = function()
23 assert_true(video
.paused
, "Video is paused.");
26 waitForEventAndRunStep("pause", video
, pauseCheck
, test
);
28 }, "Verifies pause actually pauses.");