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

test: skip requestPictureInPicture test if API isn't available (#6719)

This commit is contained in:
Gary Katsevman 2020-06-19 15:09:25 -04:00 committed by GitHub
parent cad9114b2e
commit 6d2e52ab83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2259,7 +2259,9 @@ QUnit.test('Should accept multiple calls to currentTime after player initializat
assert.equal(player.currentTime(), 800, 'The last value passed is stored as the currentTime value'); assert.equal(player.currentTime(), 800, 'The last value passed is stored as the currentTime value');
}); });
QUnit.test('Should only allow requestfullscreen if the tech supports it', function(assert) { const testOrSkip = 'pictureInPictureEnabled' in document ? 'test' : 'skip';
QUnit[testOrSkip]('Should only allow requestPictureInPicture if the tech supports it', function(assert) {
const player = TestHelpers.makePlayer({}); const player = TestHelpers.makePlayer({});
let count = 0; let count = 0;