mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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
|
@ -569381,7 +569381,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"html/semantics/embedded-content/media-elements/event_order_loadstart_progress.html": [
|
"html/semantics/embedded-content/media-elements/event_order_loadstart_progress.html": [
|
||||||
"1a22967566471d711f6b82c8e59ebd6b8681b004",
|
"4041b86a67a3b2759856bd878af62fb88b07a129",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"html/semantics/embedded-content/media-elements/event_pause.html": [
|
"html/semantics/embedded-content/media-elements/event_pause.html": [
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</video>
|
</video>
|
||||||
<div id="log"></div>
|
<div id="log"></div>
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
test(function() {
|
||||||
var t = async_test("setting src attribute on autoplay audio should trigger loadstart then progress event", {timeout:5000});
|
var t = async_test("setting src attribute on autoplay audio should trigger loadstart then progress event", {timeout:5000});
|
||||||
var a = document.getElementById("a");
|
var a = document.getElementById("a");
|
||||||
var found_loadstart = false;
|
var found_loadstart = false;
|
||||||
|
@ -28,9 +28,9 @@
|
||||||
a.pause();
|
a.pause();
|
||||||
}), false);
|
}), false);
|
||||||
a.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random();
|
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 t = async_test("setting src attribute on autoplay video should trigger loadstart then progress event", {timeout:5000});
|
||||||
var v = document.getElementById("v");
|
var v = document.getElementById("v");
|
||||||
var found_loadstart = false;
|
var found_loadstart = false;
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
v.pause();
|
v.pause();
|
||||||
}), false);
|
}), false);
|
||||||
v.src = getVideoURI("/media/movie_5") + "?" + new Date() + Math.random();
|
v.src = getVideoURI("/media/movie_5") + "?" + new Date() + Math.random();
|
||||||
})();
|
}, "video events - loadstart, then progress");
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue