1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-04 10:34:51 +02:00

test: stop running placeholder el test in IE and Safari to prevent errors (#7769)

This commit is contained in:
Pat O'Neill 2022-05-20 13:21:14 -04:00 committed by GitHub
parent 1908422f60
commit 50ffd57a8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -580,7 +580,15 @@ QUnit.test('adds video-js class name with the video-js embed', function(assert)
assert.ok(player2.hasClass('video-js'), 'video-js class was preserved to the second embed');
});
QUnit.test('stores placeholder el and restores on dispose', function(assert) {
let testOrSkip = 'test';
// The following test uses some DocumentFragment properties that are not
// available in IE or older Safaris, so we skip it.
if (videojs.browser.IE_VERSION || videojs.browser.IS_ANY_SAFARI) {
testOrSkip = 'skip';
}
QUnit[testOrSkip]('stores placeholder el and restores on dispose', function(assert) {
const fixture = document.getElementById('qunit-fixture');
const embeds = [