Properly use test() in event_order_loadstart_progress.html

This commit is contained in:
Anthony Ramine 2017-09-29 16:51:55 +02:00
parent 7bab9caafd
commit 2b64c3e6c0
2 changed files with 5 additions and 5 deletions

View file

@ -14,7 +14,7 @@
</video>
<div id="log"></div>
<script>
(function() {
test(function() {
var t = async_test("setting src attribute on autoplay audio should trigger loadstart then progress event", {timeout:5000});
var a = document.getElementById("a");
var found_loadstart = false;
@ -28,9 +28,9 @@
a.pause();
}), false);
a.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random();
})();
}, "audio events - loadstart, then progress");
(function() {
test(function() {
var t = async_test("setting src attribute on autoplay video should trigger loadstart then progress event", {timeout:5000});
var v = document.getElementById("v");
var found_loadstart = false;
@ -44,7 +44,7 @@
v.pause();
}), false);
v.src = getVideoURI("/media/movie_5") + "?" + new Date() + Math.random();
})();
}, "video events - loadstart, then progress");
</script>
</body>
</html>