blob: c81eddef659f78db4524b72b83d171981259ce01 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>video events - pause</title>
<script src="../../w3cwrapper.js"></script>
<script src="../../../Microsoft/common/media.js"></script>
</head>
<body>
<p><a href="http://dev.w3.org/html5/spec/Overview.html#mediaevents">spec reference</a></p>
<video id="a" controls>
</video>
<div id="log"></div>
<script>
var t = async_test("calling play() then pause() on non-autoplay video should trigger pause event", {timeout:30000});
var a = document.getElementById("a");
a.addEventListener("pause", function() {
t.step(function() {
assert_true(true);
});
t.done();
});
a.src = getAudioURI("http://media.w3.org/2010/05/sound/sound_5") + "?" + new Date() + Math.random();
a.play();
a.pause();
</script>
</body>
</html>