mirror of
https://github.com/videojs/video.js.git
synced 2025-07-13 01:30:17 +02:00
@mister-ben silenced chrome's play() request was interrupted by pause() error. closes #3518
This commit is contained in:
committed by
Gary Katsevman
parent
bf2eabf82d
commit
fa1c6430f4
@ -442,3 +442,20 @@ test('Html5#reset calls Html5.resetMediaElement when called', function() {
|
||||
|
||||
Html5.resetMediaElement = oldResetMedia;
|
||||
});
|
||||
|
||||
QUnit.test('Exception in play promise should be caught', function() {
|
||||
const oldEl = tech.el_;
|
||||
|
||||
tech.el_ = {
|
||||
play: () => {
|
||||
return new Promise(function(resolve, reject) {
|
||||
reject(new DOMException());
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
tech.play();
|
||||
QUnit.ok(true, 'error was caught');
|
||||
|
||||
tech.el_ = oldEl;
|
||||
});
|
||||
|
Reference in New Issue
Block a user