blob: f9139a7e2458e5f4a2e017b10a1739d4a38ce046 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>video events - timeupdate</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("calling play() on a sufficiently long video should trigger timeupdate event", {timeout:30000});
var v = document.getElementById("v");
v.addEventListener("timeupdate", function() {
t.step(function() {
assert_true(true);
});
t.done();
v.pause();
});
v.src = getVideoURI("http://media.w3.org/2010/05/video/movie_300") + "?" + new Date() + Math.random();
v.play();
</script>
</body>
</html>