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
e15b14bb
authored
2015-03-20 12:56:00 -0400
by
Brandon Bay
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Updates from PR review
1 parent
be8ad5db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
test/videojs-hls_test.js
test/videojs-hls_test.js
View file @
e15b14b
...
...
@@ -1754,7 +1754,12 @@ test('drainBuffer will not proceed with empty source buffer', function() {
player
.
hls
.
segmentBuffer_
=
[{
mediaIndex
:
0
,
playlist
:
newMedia
,
offset
:
0
,
bytes
:
[
0
,
0
,
0
]}];
player
.
hls
.
drainBuffer
();
deepEqual
(
player
.
hls
.
segmentBuffer_
,
compareBuffer
,
'playlist remains unchanged'
);
/* Normally, drainBuffer() calls segmentBuffer.shift(), removing a segment from the stack.
* Comparing two buffers to ensure no segment was popped verifies that we returned early
* from drainBuffer() because sourceBuffer was empty.
*/
deepEqual
(
player
.
hls
.
segmentBuffer_
,
compareBuffer
,
'playlist remains unchanged'
);
player
.
hls
.
playlists
.
media
=
oldMedia
;
});
...
...
Please
register
or
sign in
to post a comment