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
fb85d65a
authored
2014-03-24 11:22:42 -0400
by
Gary Katsevman
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add test for withCredentials option
1 parent
d04a92c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
test/videojs-hls_test.js
test/videojs-hls_test.js
View file @
fb85d65
...
...
@@ -1160,4 +1160,15 @@ test('only reloads the active media playlist', function() {
});
test
(
'if withCredentials option is used, withCredentials is set on the XHR object'
,
function
()
{
player
.
hls
({
url
:
'http://example.com/media.m3u8'
,
withCredentials
:
true
});
videojs
.
mediaSources
[
player
.
currentSrc
()].
trigger
({
type
:
'sourceopen'
});
ok
(
requests
[
0
].
withCredentials
,
"with credentials should be set to true if that option is passed in"
);
});
})(
window
,
window
.
videojs
);
...
...
Please
register
or
sign in
to post a comment