Skip to content

Commit 4331ee5

Browse files
committed
reinstate player dimension after test
1 parent 2b64e07 commit 4331ee5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/playback.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,17 @@ if (!videojs.browser.IS_FIREFOX) {
379379
// resolution gets us a playlist with a supported codec.
380380
// Ideally there would be some way to detect and exclude HEVC playlists
381381
// that are encrypted.
382+
const originalWidth = player.width();
383+
const originalHeight = player.height();
384+
382385
player.width(640);
383386
player.height(360);
384387

385388
player.one('ended', () => {
386389
assert.ok(true, 'triggered ended');
387390
assert.equal(player.error(), null, 'no errors');
391+
player.width(originalWidth);
392+
player.height(originalHeight);
388393
done();
389394
});
390395

0 commit comments

Comments
 (0)