858b3db8 by Lee Whitaker

Add travisci hook. Fix some jshint issues.

1 parent 81c90a70
language: javascript
script: grunt
......@@ -65,7 +65,10 @@ module.exports = function(grunt) {
options: {
jshintrc: 'test/.jshintrc'
},
src: ['test/**/*.js', '!test/tsSegment.js', '!test/fixtures/*.js']
src: ['test/**/*.js',
'!test/tsSegment.js',
'!test/fixtures/*.js',
'!test/manifest/**']
},
},
watch: {
......
[![Build Status](https://travis-ci.org/bclwhitaker/videojs-contrib-hls.png)](https://travis-ci.org/bclwhitaker/videojs-contrib-hls)
# video.js HLS Plugin
A video.js plugin that plays HLS video on platforms that don't support it but have Flash.
......
(function(window) {
var
Handlebars = this.Handlebars,
manifestController = this.manifestController,
m3u8parser;
module('environment');
......@@ -196,21 +198,21 @@
equal(data.invalidReasons.length, 0, 'data has 1 invalid reasons');
testData = {targetDuration: 'string'};
playlistData = playlistTemplate(testData),
playlistData = playlistTemplate(testData);
data = m3u8parser.parse(playlistData);
notEqual(data.invalidReasons, null, 'invalidReasons is not NULL');
equal(data.invalidReasons.length, 1, 'data has 1 invalid reasons');
equal(data.invalidReasons[0], 'Invalid Target Duration Value: string');
testData = {targetDuration: ''};
playlistData = playlistTemplate(testData),
playlistData = playlistTemplate(testData);
data = m3u8parser.parse(playlistData);
notEqual(data.invalidReasons, null, 'invalidReasons is not NULL');
equal(data.invalidReasons.length, 1, 'data has 1 invalid reasons');
equal(data.invalidReasons[0], 'Invalid Target Duration Value: \'\'');
testData = {}
playlistData = playlistTemplate(testData),
testData = {};
playlistData = playlistTemplate(testData);
notEqual(data, null, 'data is not NULL');
notEqual(data.invalidReasons, null, 'invalidReasons is not NULL');
equal(data.invalidReasons.length, 1, 'data has 1 invalid reasons');
......
......@@ -20,7 +20,6 @@
throws(block, [expected], [message])
*/
var
manifestController,
segmentController,
parser,
......