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:
parent
cad9114b2e
commit
6d2e52ab83
@ -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');
|
||||
});
|
||||
|
||||
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({});
|
||||
let count = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user