1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-14 11:23:30 +02:00
video.js/test/unit/setup.js

13 lines
439 B
JavaScript

module('Setup');
test('should set options from data-setup even if autoSetup is not called before initialisation', function(){
var el = PlayerTest.makeTag();
el.setAttribute('data-setup', '{"controls": true, "autoplay": false, "preload": "auto"}');
var player = PlayerTest.makePlayer({}, el);
ok(player.options_['controls'] === true);
ok(player.options_['autoplay'] === false);
ok(player.options_['preload'] === 'auto');
});