1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-14 11:23:30 +02:00
video.js/test/unit/button.js
Steve Heffernan 7ea1d8f544 Modified language json structure to not include the code.
Also removed languages from being combined with core until we add the ability to choose languages.
2014-08-05 17:48:00 -07:00

23 lines
411 B
JavaScript

module('Button');
test('should localize its text', function(){
expect(1);
var player, testButton, el;
player = PlayerTest.makePlayer({
'language': 'es',
'languages': {
'es': {
'Play': 'Juego'
}
}
});
testButton = new vjs.Button(player);
testButton.buttonText = 'Play';
el = testButton.createEl();
ok(el.innerHTML, 'Juego', 'translation was successful');
});