mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01:00
Properly fail in event_canplaythrough_noautoplay.html
This commit is contained in:
parent
8a3afe35fe
commit
c0040b27fd
3 changed files with 6 additions and 9 deletions
|
@ -569341,7 +569341,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"html/semantics/embedded-content/media-elements/event_canplaythrough_noautoplay.html": [
|
"html/semantics/embedded-content/media-elements/event_canplaythrough_noautoplay.html": [
|
||||||
"04dba01a3d3da718a2ea3e65078d41fbfec982be",
|
"9356b4db1afec24866154701da6e9814f5b891a9",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"html/semantics/embedded-content/media-elements/event_loadeddata.html": [
|
"html/semantics/embedded-content/media-elements/event_loadeddata.html": [
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
[event_canplaythrough_noautoplay.html]
|
[event_canplaythrough_noautoplay.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: TIMEOUT
|
|
||||||
[setting src attribute on non-autoplay audio should trigger canplaythrough event]
|
[setting src attribute on non-autoplay audio should trigger canplaythrough 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 canplaythrough event", {timeout:5000});
|
var t = async_test("setting src attribute on non-autoplay audio should trigger canplaythrough event", {timeout:5000});
|
||||||
var a = document.getElementById("a");
|
var a = document.getElementById("a");
|
||||||
a.addEventListener("canplaythrough", function() {
|
a.addEventListener("error", t.unreached_func());
|
||||||
t.done();
|
a.addEventListener("canplaythrough", 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 - canplaythrough");
|
}, "audio events - canplaythrough");
|
||||||
|
|
||||||
test(function() {
|
test(function() {
|
||||||
var t = async_test("setting src attribute on non-autoplay video should trigger canplaythrough event", {timeout:5000});
|
var t = async_test("setting src attribute on non-autoplay video should trigger canplaythrough event", {timeout:5000});
|
||||||
var v = document.getElementById("v");
|
var v = document.getElementById("v");
|
||||||
v.addEventListener("canplaythrough", function() {
|
v.addEventListener("error", t.unreached_func());
|
||||||
t.done();
|
v.addEventListener("canplaythrough", 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 - canplaythrough");
|
}, "video events - canplaythrough");
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue