858b3db8 by Lee Whitaker

Add travisci hook. Fix some jshint issues.

1 parent 81c90a70
1 language: javascript
2 script: grunt
...@@ -65,7 +65,10 @@ module.exports = function(grunt) { ...@@ -65,7 +65,10 @@ module.exports = function(grunt) {
65 options: { 65 options: {
66 jshintrc: 'test/.jshintrc' 66 jshintrc: 'test/.jshintrc'
67 }, 67 },
68 src: ['test/**/*.js', '!test/tsSegment.js', '!test/fixtures/*.js'] 68 src: ['test/**/*.js',
69 '!test/tsSegment.js',
70 '!test/fixtures/*.js',
71 '!test/manifest/**']
69 }, 72 },
70 }, 73 },
71 watch: { 74 watch: {
......
1 [![Build Status](https://travis-ci.org/bclwhitaker/videojs-contrib-hls.png)](https://travis-ci.org/bclwhitaker/videojs-contrib-hls)
2
1 # video.js HLS Plugin 3 # video.js HLS Plugin
2 4
3 A video.js plugin that plays HLS video on platforms that don't support it but have Flash. 5 A video.js plugin that plays HLS video on platforms that don't support it but have Flash.
......
1 (function(window) { 1 (function(window) {
2 var 2 var
3 Handlebars = this.Handlebars,
4 manifestController = this.manifestController,
3 m3u8parser; 5 m3u8parser;
4 6
5 module('environment'); 7 module('environment');
...@@ -196,21 +198,21 @@ ...@@ -196,21 +198,21 @@
196 equal(data.invalidReasons.length, 0, 'data has 1 invalid reasons'); 198 equal(data.invalidReasons.length, 0, 'data has 1 invalid reasons');
197 199
198 testData = {targetDuration: 'string'}; 200 testData = {targetDuration: 'string'};
199 playlistData = playlistTemplate(testData), 201 playlistData = playlistTemplate(testData);
200 data = m3u8parser.parse(playlistData); 202 data = m3u8parser.parse(playlistData);
201 notEqual(data.invalidReasons, null, 'invalidReasons is not NULL'); 203 notEqual(data.invalidReasons, null, 'invalidReasons is not NULL');
202 equal(data.invalidReasons.length, 1, 'data has 1 invalid reasons'); 204 equal(data.invalidReasons.length, 1, 'data has 1 invalid reasons');
203 equal(data.invalidReasons[0], 'Invalid Target Duration Value: string'); 205 equal(data.invalidReasons[0], 'Invalid Target Duration Value: string');
204 206
205 testData = {targetDuration: ''}; 207 testData = {targetDuration: ''};
206 playlistData = playlistTemplate(testData), 208 playlistData = playlistTemplate(testData);
207 data = m3u8parser.parse(playlistData); 209 data = m3u8parser.parse(playlistData);
208 notEqual(data.invalidReasons, null, 'invalidReasons is not NULL'); 210 notEqual(data.invalidReasons, null, 'invalidReasons is not NULL');
209 equal(data.invalidReasons.length, 1, 'data has 1 invalid reasons'); 211 equal(data.invalidReasons.length, 1, 'data has 1 invalid reasons');
210 equal(data.invalidReasons[0], 'Invalid Target Duration Value: \'\''); 212 equal(data.invalidReasons[0], 'Invalid Target Duration Value: \'\'');
211 213
212 testData = {} 214 testData = {};
213 playlistData = playlistTemplate(testData), 215 playlistData = playlistTemplate(testData);
214 notEqual(data, null, 'data is not NULL'); 216 notEqual(data, null, 'data is not NULL');
215 notEqual(data.invalidReasons, null, 'invalidReasons is not NULL'); 217 notEqual(data.invalidReasons, null, 'invalidReasons is not NULL');
216 equal(data.invalidReasons.length, 1, 'data has 1 invalid reasons'); 218 equal(data.invalidReasons.length, 1, 'data has 1 invalid reasons');
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
20 throws(block, [expected], [message]) 20 throws(block, [expected], [message])
21 */ 21 */
22 var 22 var
23 manifestController,
24 segmentController, 23 segmentController,
25 parser, 24 parser,
26 25
......