mirror of
https://github.com/videojs/video.js.git
synced 2024-12-14 11:23:30 +02:00
a8ff970d4a
Broke out bind, guid, and element data functions from Lib Separated out more dom functions in to dom.js Broke out URL functions into url.js Removed setLocalStorage since it wasn't being used Moved browser tests out of lib Moved log functions into their own file Removed trim() since it wasn't being used Moved formatTime into its own file Moved round into its own file and renamed roundFloat() Moved capitalize into its own file and renamed as toTitleCase() Moved createTimeRange into its own file Removed Lib.arr.forEach infavor of the native forEach Removed Lib.obj.create in favor of native Object.create (ES6-sham) Removed obj.each in favor of native Object.getOwnPropertyNames().forEach() Removed obj.merge and copy. Using lodash.assign instead. Replaced Lib.obj.isPlain with lodash.isPlainObject Removed Lib.obj.isArray in favor of the native Array.isArray Also removed the lib.js tests file as all tests have been moved or removed. Removed Lib.isEmpty in favor of !Object.getOwnPropertyNames().length Switched Util.mergeOptions and deepMerge to use new mergeOptions() Moved Lib.TEST_VID to Html5.TEST_VID Removed Lib references everywhere. Woo! Attempting to fix sourcemap test errors by setting grunt-browserify version Switched to object.assign from lodash.assign Removed unused 'inherits' dependency Reorganzied test files and added '.test' to file names Combined js/core.js and js/video.js Moved events.js into the utils directory
26 lines
501 B
JavaScript
26 lines
501 B
JavaScript
import Button from '../../src/js/button.js';
|
|
import TestHelpers from './test-helpers.js';
|
|
|
|
q.module('Button');
|
|
|
|
test('should localize its text', function(){
|
|
expect(1);
|
|
|
|
var player, testButton, el;
|
|
|
|
player = TestHelpers.makePlayer({
|
|
'language': 'es',
|
|
'languages': {
|
|
'es': {
|
|
'Play': 'Juego'
|
|
}
|
|
}
|
|
});
|
|
|
|
testButton = new Button(player);
|
|
testButton.buttonText = 'Play';
|
|
el = testButton.createEl();
|
|
|
|
ok(el.innerHTML, 'Juego', 'translation was successful');
|
|
});
|