Skip to content

Commit

Permalink
test: skip requestPictureInPicture test if API isn't available (#6719)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev committed Jun 19, 2020
1 parent cad9114 commit 6d2e52a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unit/player.test.js
Expand Up @@ -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;

Expand Down

0 comments on commit 6d2e52a

Please sign in to comment.