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

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