mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #18675 - servo:DETERMINISTIC-ALL-THE-THINGS, r=bzbarsky
Make more media tests not timeout <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18675) <!-- Reviewable:end -->
This commit is contained in:
commit
8732f6de69
19 changed files with 55 additions and 71 deletions
|
@ -569297,7 +569297,7 @@
|
|||
"manual"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/audio_loop_base.html": [
|
||||
"7b60d16acf933da11aa65988bf2dfada68c3b853",
|
||||
"0b80893f6737ac647fd0205748ce3e6be437a3c3",
|
||||
"testharness"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/audio_muted_overriding_volume-manual.html": [
|
||||
|
@ -569325,31 +569325,31 @@
|
|||
"support"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/error-codes/error.html": [
|
||||
"b13ed034ef354031000614c7f11a20d8fc17653a",
|
||||
"67fa0268d3ceca1508873d5eb0eecfd4853924e0",
|
||||
"testharness"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/event_canplay.html": [
|
||||
"e68b3bfc3a4fb897b1435fc1d7ba4596c2efbfbe",
|
||||
"65d79aca07b4d6387b149896e98fb6996c48efa4",
|
||||
"testharness"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/event_canplay_noautoplay.html": [
|
||||
"49202003dc7204d997b4dcee3a99ae9b9c77399f",
|
||||
"e08596384e2cbca459ba543b6c7cf90b6b3ae5d6",
|
||||
"testharness"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/event_canplaythrough.html": [
|
||||
"7f6e61d2498bb60077c50a2036430a2bf7a7ec9f",
|
||||
"1e8c7c45424c99a2695ff5857166fe34f39ffdc1",
|
||||
"testharness"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/event_canplaythrough_noautoplay.html": [
|
||||
"04dba01a3d3da718a2ea3e65078d41fbfec982be",
|
||||
"9356b4db1afec24866154701da6e9814f5b891a9",
|
||||
"testharness"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/event_loadeddata.html": [
|
||||
"c1457d29ad55ea9e6d723e9d9d144f199f614a79",
|
||||
"8bca4ba5dd134781fa0b5d707352ff181ecfa884",
|
||||
"testharness"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/event_loadeddata_noautoplay.html": [
|
||||
"7765806a9035b1c94929eb913a68668b6268d900",
|
||||
"6cb2a73e478e7042a443332124d54804279c82f5",
|
||||
"testharness"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/event_loadedmetadata.html": [
|
||||
|
@ -569357,7 +569357,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/event_loadedmetadata_noautoplay.html": [
|
||||
"247eae45d09620d37ee0714475ab9677b8061b6e",
|
||||
"ac16de99849bb391243ec7d02b2063fc75471dee",
|
||||
"testharness"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/event_loadstart.html": [
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
[audio_loop_base.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
disabled: extreme timeout
|
||||
[Check if audio.loop is set to true that expecting the seeking event is fired more than once]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
[error.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[audio.error after successful load]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
[audio.error after setting src to the empty string]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[event_canplay.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[setting src attribute on autoplay audio should trigger canplay event]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[event_canplay_noautoplay.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[setting src attribute on non-autoplay audio should trigger canplay event]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[event_canplaythrough.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[setting src attribute on autoplay audio should trigger canplaythrough event]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[event_canplaythrough_noautoplay.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[setting src attribute on non-autoplay audio should trigger canplaythrough event]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,12 +1,5 @@
|
|||
[event_loadeddata.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[video events - loadeddata]
|
||||
[setting src attribute on autoplay audio should trigger loadeddata event]
|
||||
expected: FAIL
|
||||
|
||||
[setting src attribute on autoplay video should trigger loadeddata event]
|
||||
expected: NOTRUN
|
||||
|
||||
[setting src attribute on autoplay audio should trigger loadeddata event]
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[event_loadeddata_noautoplay.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[setting src attribute on non-autoplay audio should trigger loadeddata event]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[event_loadedmetadata_noautoplay.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[setting src attribute on non-autoplay audio should trigger loadedmetadata event]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
looped = true;
|
||||
}
|
||||
|
||||
media.addEventListener("error", t.unreached_func());
|
||||
media.addEventListener("seeking", startTest, false);
|
||||
media.loop = true;
|
||||
media.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random();
|
||||
|
|
|
@ -13,6 +13,7 @@ function error_test(tagName, src) {
|
|||
async_test(function(t) {
|
||||
var e = document.createElement(tagName);
|
||||
e.src = src;
|
||||
e.onerror = t.unreached_func();
|
||||
e.onloadeddata = t.step_func(function() {
|
||||
assert_equals(e.error, null);
|
||||
t.done();
|
||||
|
|
|
@ -17,20 +17,22 @@
|
|||
test(function() {
|
||||
var t = async_test("setting src attribute on autoplay audio should trigger canplay event", {timeout:5000});
|
||||
var a = document.getElementById("a");
|
||||
a.addEventListener("canplay", function() {
|
||||
a.addEventListener("error", t.unreached_func());
|
||||
a.addEventListener("canplay", t.step_func(function() {
|
||||
t.done();
|
||||
a.pause();
|
||||
}, false);
|
||||
}), false);
|
||||
a.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random();
|
||||
}, "audio events - canplay");
|
||||
|
||||
test(function() {
|
||||
var t = async_test("setting src attribute on autoplay video should trigger canplay event", {timeout:5000});
|
||||
var v = document.getElementById("v");
|
||||
v.addEventListener("canplay", function() {
|
||||
v.addEventListener("error", t.unreached_func());
|
||||
v.addEventListener("canplay", t.step_func(function() {
|
||||
t.done();
|
||||
v.pause();
|
||||
}, false);
|
||||
}), false);
|
||||
v.src = getVideoURI("/media/movie_5") + "?" + new Date() + Math.random();
|
||||
}, "video events - canplay");
|
||||
</script>
|
||||
|
|
|
@ -17,18 +17,16 @@
|
|||
test(function () {
|
||||
var t = async_test("setting src attribute on non-autoplay audio should trigger canplay event", {timeout:5000});
|
||||
var a = document.getElementById("a");
|
||||
a.addEventListener("canplay", function() {
|
||||
t.done();
|
||||
}, false);
|
||||
a.addEventListener("error", t.unreached_func());
|
||||
a.addEventListener("canplay", t.step_func_done(), false);
|
||||
a.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random();
|
||||
}, "audio events - canplay");
|
||||
|
||||
test(function () {
|
||||
var t = async_test("setting src attribute on non-autoplay video should trigger canplay event", {timeout:5000});
|
||||
var v = document.getElementById("v");
|
||||
v.addEventListener("canplay", function() {
|
||||
t.done();
|
||||
}, false);
|
||||
v.addEventListener("error", t.unreached_func());
|
||||
v.addEventListener("canplay", t.step_func_done(), false);
|
||||
v.src = getVideoURI("/media/movie_5") + "?" + new Date() + Math.random();
|
||||
}, "video events - canplay");
|
||||
</script>
|
||||
|
|
|
@ -17,20 +17,22 @@
|
|||
test(function() {
|
||||
var t = async_test("setting src attribute on autoplay audio should trigger canplaythrough event", {timeout:5000});
|
||||
var a = document.getElementById("a");
|
||||
a.addEventListener("canplaythrough", function() {
|
||||
a.addEventListener("error", t.unreached_func());
|
||||
a.addEventListener("canplaythrough", t.step_func(function() {
|
||||
t.done();
|
||||
a.pause();
|
||||
}, false);
|
||||
}), false);
|
||||
a.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random();
|
||||
}, "audio events - canplaythrough");
|
||||
|
||||
test(function() {
|
||||
var t = async_test("setting src attribute on autoplay video should trigger canplaythrough event", {timeout:5000});
|
||||
var v = document.getElementById("v");
|
||||
v.addEventListener("canplaythrough", function() {
|
||||
v.addEventListener("error", t.unreached_func());
|
||||
v.addEventListener("canplaythrough", t.step_func(function() {
|
||||
t.done();
|
||||
v.pause();
|
||||
}, false);
|
||||
}), false);
|
||||
v.src = getVideoURI("/media/movie_5") + "?" + new Date() + Math.random();
|
||||
}, "video events - canplaythrough");
|
||||
</script>
|
||||
|
|
|
@ -17,18 +17,16 @@
|
|||
test(function() {
|
||||
var t = async_test("setting src attribute on non-autoplay audio should trigger canplaythrough event", {timeout:5000});
|
||||
var a = document.getElementById("a");
|
||||
a.addEventListener("canplaythrough", function() {
|
||||
t.done();
|
||||
}, false);
|
||||
a.addEventListener("error", t.unreached_func());
|
||||
a.addEventListener("canplaythrough", t.step_func_done(), false);
|
||||
a.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random();
|
||||
}, "audio events - canplaythrough");
|
||||
|
||||
test(function() {
|
||||
var t = async_test("setting src attribute on non-autoplay video should trigger canplaythrough event", {timeout:5000});
|
||||
var v = document.getElementById("v");
|
||||
v.addEventListener("canplaythrough", function() {
|
||||
t.done();
|
||||
}, false);
|
||||
v.addEventListener("error", t.unreached_func());
|
||||
v.addEventListener("canplaythrough", t.step_func_done(), false);
|
||||
v.src = getVideoURI("/media/movie_5") + "?" + new Date() + Math.random();
|
||||
}, "video events - canplaythrough");
|
||||
</script>
|
||||
|
|
|
@ -17,20 +17,22 @@
|
|||
test(function() {
|
||||
var t = async_test("setting src attribute on autoplay audio should trigger loadeddata event", {timeout:5000});
|
||||
var a = document.getElementById("a");
|
||||
a.addEventListener("loadeddata", function() {
|
||||
a.addEventListener("error", t.unreached_func());
|
||||
a.addEventListener("loadeddata", t.step_func(function() {
|
||||
t.done();
|
||||
a.pause();
|
||||
}, false);
|
||||
}), false);
|
||||
a.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random();
|
||||
}, "audio events - loadeddata");
|
||||
|
||||
test(function() {
|
||||
var t = async_test("setting src attribute on autoplay video should trigger loadeddata event", {timeout:5000});
|
||||
var a = document.getElementById("v");
|
||||
v.addEventListener("loadeddata", function() {
|
||||
var v = document.getElementById("v");
|
||||
v.addEventListener("error", t.unreached_func());
|
||||
v.addEventListener("loadeddata", t.step_func(function() {
|
||||
t.done();
|
||||
v.pause();
|
||||
}, false);
|
||||
}), false);
|
||||
v.src = getVideoURI("/media/movie_5") + "?" + new Date() + Math.random();
|
||||
}, "video events - loadeddata");
|
||||
</script>
|
||||
|
|
|
@ -17,18 +17,16 @@
|
|||
test(function() {
|
||||
var t = async_test("setting src attribute on non-autoplay audio should trigger loadeddata event", {timeout:5000});
|
||||
var a = document.getElementById("a");
|
||||
a.addEventListener("loadeddata", function() {
|
||||
t.done();
|
||||
}, false);
|
||||
a.addEventListener("error", t.unreached_func());
|
||||
a.addEventListener("loadeddata", t.step_func_done(), false);
|
||||
a.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random();
|
||||
}, "audio events - loadeddata");
|
||||
|
||||
test(function() {
|
||||
var t = async_test("setting src attribute on non-autoplay video should trigger loadeddata event", {timeout:5000});
|
||||
var v = document.getElementById("v");
|
||||
v.addEventListener("loadeddata", function() {
|
||||
t.done();
|
||||
}, false);
|
||||
v.addEventListener("error", t.unreached_func());
|
||||
v.addEventListener("loadeddata", t.step_func_done(), false);
|
||||
v.src = getVideoURI("/media/movie_5") + "?" + new Date() + Math.random();
|
||||
}, "video events - loadeddata");
|
||||
</script>
|
||||
|
|
|
@ -17,18 +17,16 @@
|
|||
test(function() {
|
||||
var t = async_test("setting src attribute on non-autoplay audio should trigger loadedmetadata event", {timeout:5000});
|
||||
var a = document.getElementById("a");
|
||||
a.addEventListener("loadedmetadata", function() {
|
||||
t.done();
|
||||
}, false);
|
||||
a.addEventListener("error", t.unreached_func());
|
||||
a.addEventListener("loadedmetadata", t.step_func_done(), false);
|
||||
a.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random();
|
||||
}, "audio events - loadedmetadata");
|
||||
|
||||
test(function() {
|
||||
var t = async_test("setting src attribute on non-autoplay video should trigger loadedmetadata event", {timeout:5000});
|
||||
var v = document.getElementById("v");
|
||||
v.addEventListener("loadedmetadata", function() {
|
||||
t.done();
|
||||
}, false);
|
||||
v.addEventListener("error", t.unreached_func());
|
||||
v.addEventListener("loadedmetadata", t.step_func_done(), false);
|
||||
v.src = getVideoURI("/media/movie_5") + "?" + new Date() + Math.random();
|
||||
}, "video events, loadedmetadata");
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue