mirror of
https://github.com/kmoskwiak/videojs-resolution-switcher.git
synced 2025-10-03 17:59:42 +02:00
jshint tests
This commit is contained in:
parent
1121c822d9
commit
437ecd076c
3 changed files with 12 additions and 3 deletions
|
@ -81,4 +81,8 @@ module.exports = function(grunt) {
|
|||
'qunit',
|
||||
'concat',
|
||||
'uglify']);
|
||||
|
||||
grunt.registerTask('test', [
|
||||
'jshint'
|
||||
]);
|
||||
};
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
// Probably because of https://github.com/videojs/video-js-swf/issues/124
|
||||
// If player preload is 'none' and then loadeddata not fired. So, we need timeupdate event for seek handle (timeupdate doesn't work properly with flash)
|
||||
var handleSeekEvent = 'loadeddata';
|
||||
if(this.player_.preload() == 'none' && this.player_.techName_ != 'Flash') {
|
||||
if(this.player_.preload() === 'none' && this.player_.techName_ !== 'Flash') {
|
||||
handleSeekEvent = 'timeupdate';
|
||||
}
|
||||
setSourcesSanitized(this.player_, this.src, this.options_.label, customSourcePicker).one(handleSeekEvent, function() {
|
||||
|
@ -201,7 +201,7 @@
|
|||
*/
|
||||
player.getGroupedSrc = function(){
|
||||
return groupedSrc;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Method used for sorting list of sources
|
||||
|
|
|
@ -31,7 +31,12 @@
|
|||
"source",
|
||||
"videojs-plugin"
|
||||
],
|
||||
"dependencies": {},
|
||||
"scripts": {
|
||||
"test": "grunt test"
|
||||
},
|
||||
"dependencies": {
|
||||
"grunt": "^0.4.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt-contrib-clean": "^0.7",
|
||||
"grunt-contrib-concat": "^0.5",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue