mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Properly use test() in event_order_loadstart_progress.html
This commit is contained in:
parent
7bab9caafd
commit
2b64c3e6c0
2 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue