mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Properly fail in event_canplay_noautoplay.html
This commit is contained in:
parent
bf3d6948c1
commit
4923045353
3 changed files with 6 additions and 9 deletions
|
@ -569333,7 +569333,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"html/semantics/embedded-content/media-elements/event_canplay_noautoplay.html": [
|
"html/semantics/embedded-content/media-elements/event_canplay_noautoplay.html": [
|
||||||
"49202003dc7204d997b4dcee3a99ae9b9c77399f",
|
"e08596384e2cbca459ba543b6c7cf90b6b3ae5d6",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"html/semantics/embedded-content/media-elements/event_canplaythrough.html": [
|
"html/semantics/embedded-content/media-elements/event_canplaythrough.html": [
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
[event_canplay_noautoplay.html]
|
[event_canplay_noautoplay.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: TIMEOUT
|
|
||||||
[setting src attribute on non-autoplay audio should trigger canplay event]
|
[setting src attribute on non-autoplay audio should trigger canplay event]
|
||||||
expected: NOTRUN
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -17,18 +17,16 @@
|
||||||
test(function () {
|
test(function () {
|
||||||
var t = async_test("setting src attribute on non-autoplay audio should trigger canplay event", {timeout:5000});
|
var t = async_test("setting src attribute on non-autoplay audio should trigger canplay event", {timeout:5000});
|
||||||
var a = document.getElementById("a");
|
var a = document.getElementById("a");
|
||||||
a.addEventListener("canplay", function() {
|
a.addEventListener("error", t.unreached_func());
|
||||||
t.done();
|
a.addEventListener("canplay", t.step_func_done(), false);
|
||||||
}, false);
|
|
||||||
a.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random();
|
a.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random();
|
||||||
}, "audio events - canplay");
|
}, "audio events - canplay");
|
||||||
|
|
||||||
test(function () {
|
test(function () {
|
||||||
var t = async_test("setting src attribute on non-autoplay video should trigger canplay event", {timeout:5000});
|
var t = async_test("setting src attribute on non-autoplay video should trigger canplay event", {timeout:5000});
|
||||||
var v = document.getElementById("v");
|
var v = document.getElementById("v");
|
||||||
v.addEventListener("canplay", function() {
|
v.addEventListener("error", t.unreached_func());
|
||||||
t.done();
|
v.addEventListener("canplay", t.step_func_done(), false);
|
||||||
}, false);
|
|
||||||
v.src = getVideoURI("/media/movie_5") + "?" + new Date() + Math.random();
|
v.src = getVideoURI("/media/movie_5") + "?" + new Date() + Math.random();
|
||||||
}, "video events - canplay");
|
}, "video events - canplay");
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue