Properly fail in autoplay.html

This commit is contained in:
Anthony Ramine 2017-09-29 18:57:01 +02:00
parent 71e987951f
commit d0020888a2
3 changed files with 7 additions and 8 deletions

View file

@ -569825,7 +569825,7 @@
"testharness" "testharness"
], ],
"html/semantics/embedded-content/media-elements/ready-states/autoplay.html": [ "html/semantics/embedded-content/media-elements/ready-states/autoplay.html": [
"6ca8c7a50317c932254cf8254c7638d61f8bb00a", "001cc2fc7405f443e1f83f1685c810371cc24de7",
"testharness" "testharness"
], ],
"html/semantics/embedded-content/media-elements/readyState_during_canplay.html": [ "html/semantics/embedded-content/media-elements/readyState_during_canplay.html": [

View file

@ -1,18 +1,17 @@
[autoplay.html] [autoplay.html]
type: testharness type: testharness
expected: TIMEOUT
[audio.autoplay] [audio.autoplay]
expected: TIMEOUT expected: FAIL
[audio.autoplay and load()] [audio.autoplay and load()]
expected: TIMEOUT expected: FAIL
[audio.autoplay and play()] [audio.autoplay and play()]
expected: TIMEOUT expected: FAIL
[audio.autoplay and pause()] [audio.autoplay and pause()]
expected: TIMEOUT expected: FAIL
[audio.autoplay and internal pause steps] [audio.autoplay and internal pause steps]
expected: TIMEOUT expected: FAIL

View file

@ -17,7 +17,7 @@ function autoplay_test(tagName, src) {
} }
}); });
['canplay', 'canplaythrough', ['canplay', 'canplaythrough',
'pause', 'play', 'playing'].forEach(function(type) { 'pause', 'play', 'playing', 'error'].forEach(function(type) {
e.addEventListener(type, callback); e.addEventListener(type, callback);
}); });
} }