1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00
This commit is contained in:
Daniel Neto 2023-07-06 14:21:07 -03:00
parent 213874cbeb
commit 92a2641de8
48 changed files with 2619 additions and 400 deletions

View file

@ -42,3 +42,18 @@ QUnit.test('registers itself with video.js', function(assert) {
'videojs-contrib-quality-levels plugin was registered'
);
});
QUnit.test('player qualityLevels method returns the proper object', function(assert) {
const qualityLevels = this.player.qualityLevels();
assert.equal(
qualityLevels.length,
0,
'the returned object contained the length property with the proper value'
);
assert.equal(
qualityLevels.selectedIndex,
-1,
'the returned object contained the selectedIndex property with the proper value'
);
});