blob: effd0ec53d19c54f23e9323a9bed773548c42d7f [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>video events - paused property</title>
<script src="../../w3cwrapper.js"></script>
</head>
<body>
<p><a href="http://dev.w3.org/html5/spec/Overview.html#mediaevents">spec reference</a></p>
<video id="v" controls>
</video>
<div id="log"></div>
<script>
var t = async_test("video.paused should be true during pause event", {timeout:30000});
var v = document.getElementById("v");
v.addEventListener("pause", function() {
t.step(function() {
assert_true(v.paused);
});
t.done();
});
v.src = getVideoURI("http://media.w3.org/2010/05/video/movie_300") + "?" + new Date() + Math.random();
v.play();
v.pause();
</script>
</body>
</html>