Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
858b3db8
authored
2013-11-18 18:31:39 -0500
by
Lee Whitaker
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add travisci hook. Fix some jshint issues.
1 parent
81c90a70
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
6 deletions
.travis.yml
Gruntfile.js
README.md
test/m3u8_test.js
test/video-js-hls_test.js
.travis.yml
0 → 100644
View file @
858b3db
language
:
javascript
script
:
grunt
Gruntfile.js
View file @
858b3db
...
...
@@ -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
:
{
...
...
README.md
View file @
858b3db
[
![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.
...
...
test/m3u8_test.js
View file @
858b3db
(
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'
);
...
...
test/video-js-hls_test.js
View file @
858b3db
...
...
@@ -20,7 +20,6 @@
throws(block, [expected], [message])
*/
var
manifestController
,
segmentController
,
parser
,
...
...
Please
register
or
sign in
to post a comment