1
0
mirror of https://github.com/videojs/video.js.git synced 2025-11-29 23:07:51 +02:00

test: update tests to use qunit 2 assert format (#4753)

This commit is contained in:
Brandon Casey
2017-11-16 18:12:09 -05:00
committed by Gary Katsevman
parent 3aae4b2336
commit 06641e8694
4 changed files with 32 additions and 32 deletions

View File

@@ -90,16 +90,16 @@ QUnit.test('should hide playback rate control if it\'s not supported', function(
player.dispose();
});
QUnit.test('Fullscreen control text should be correct when fullscreenchange is triggered', function() {
QUnit.test('Fullscreen control text should be correct when fullscreenchange is triggered', function(assert) {
const player = TestHelpers.makePlayer();
const fullscreentoggle = new FullscreenToggle(player);
player.isFullscreen(true);
player.trigger('fullscreenchange');
QUnit.equal(fullscreentoggle.controlText(), 'Non-Fullscreen', 'Control Text is correct while switching to fullscreen mode');
assert.equal(fullscreentoggle.controlText(), 'Non-Fullscreen', 'Control Text is correct while switching to fullscreen mode');
player.isFullscreen(false);
player.trigger('fullscreenchange');
QUnit.equal(fullscreentoggle.controlText(), 'Fullscreen', 'Control Text is correct while switching back to normal mode');
assert.equal(fullscreentoggle.controlText(), 'Fullscreen', 'Control Text is correct while switching back to normal mode');
player.dispose();
});