Properly fail in /html/semantics/embedded-content/media-elements/error-codes/error.html

This commit is contained in:
Anthony Ramine 2017-09-29 14:25:13 +02:00
parent 83488a20f1
commit 0e56b79e78
3 changed files with 3 additions and 3 deletions

View file

@ -569325,7 +569325,7 @@
"support"
],
"html/semantics/embedded-content/media-elements/error-codes/error.html": [
"b13ed034ef354031000614c7f11a20d8fc17653a",
"67fa0268d3ceca1508873d5eb0eecfd4853924e0",
"testharness"
],
"html/semantics/embedded-content/media-elements/event_canplay.html": [

View file

@ -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

View file

@ -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();