blob: 2f7c8306d7f85564a15092ac426a80022d9776c0 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>video events - progress</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="a" autoplay controls>
</video>
<div id="log"></div>
<script>
var t = async_test("setting src attribute on autoplay video should trigger progress event", {timeout:30000});
var a = document.getElementById("a");
a.addEventListener("progress", function() {
t.step(function() {
assert_true(true);
});
t.done();
a.pause();
}, { once: true });
a.src = getAudioURI();
</script>
</body>
</html>