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