1
0
mirror of https://github.com/videojs/video.js.git synced 2025-02-02 11:34:50 +02:00

test(ResizeManager): only listen for one playerresize to make test not flaky (#5022)

This commit is contained in:
Gary Katsevman 2018-03-15 11:16:42 -04:00 committed by GitHub
parent ebbe86812b
commit 4e83cd3e3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@ if (!browser.IS_IE8) {
let playerresizeCalled = 0;
const rm = new ResizeManager(this.player, {ResizeObserver: MyResizeObserver});
this.player.on('playerresize', function() {
this.player.one('playerresize', function() {
playerresizeCalled++;
});
observer();