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
a98b7946
authored
2014-09-29 16:00:38 -0700
by
Alex Rubin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Simplified test
1 parent
b10e15b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
test/videojs-hls_test.js
test/videojs-hls_test.js
View file @
a98b794
...
...
@@ -1111,16 +1111,17 @@ test('resets the switching algorithm if a request times out', function() {
'reset to the lowest bitrate playlist'
);
});
test
(
'handles xhr timeouts correctly'
,
function
(
assert
)
{
expect
(
1
)
;
test
(
'handles xhr timeouts correctly'
,
function
()
{
var
error
;
var
clock
=
sinon
.
useFakeTimers
();
videojs
.
Hls
.
xhr
({
url
:
'http://example.com'
,
timeout
:
1
},
function
(
e
rror
)
{
assert
.
strictEqual
(
error
,
'timeout'
,
'called with timeout error'
)
;
},
function
(
innerE
rror
)
{
error
=
innerError
;
});
clock
.
tick
(
1
);
strictEqual
(
error
,
'timeout'
,
'called with timeout error'
);
clock
.
restore
();
});
...
...
Please
register
or
sign in
to post a comment