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
c84a41cb
authored
2014-10-02 14:39:07 -0400
by
Gary Katsevman
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix bandwidth test.
Also, update phantom. Conflicts: src/videojs-hls.js
1 parent
5aec30b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
package.json
test/videojs-hls_test.js
package.json
View file @
c84a41c
...
...
@@ -29,10 +29,11 @@
"karma-firefox-launcher"
:
"~0.1.3"
,
"karma-ie-launcher"
:
"~0.1.1"
,
"karma-opera-launcher"
:
"~0.1.0"
,
"karma-phantomjs-launcher"
:
"
~0.1.1
"
,
"karma-phantomjs-launcher"
:
"
^0.1.4
"
,
"karma-qunit"
:
"~0.1.1"
,
"karma-safari-launcher"
:
"~0.1.1"
,
"karma-sauce-launcher"
:
"~0.1.8"
,
"qunitjs"
:
"^1.15.0"
,
"sinon"
:
"1.10.2"
,
"video.js"
:
"^4.7.2"
},
...
...
test/videojs-hls_test.js
View file @
c84a41c
...
...
@@ -385,6 +385,10 @@ test('calculates the bandwidth after downloading a segment', function() {
openMediaSource
(
player
);
standardXHRResponse
(
requests
[
0
]);
// set the request time to be a bit earlier so our bandwidth calculations are NaN
requests
[
1
].
requestTime
=
(
new
Date
())
-
100
;
standardXHRResponse
(
requests
[
1
]);
ok
(
player
.
hls
.
bandwidth
,
'bandwidth is calculated'
);
...
...
Please
register
or
sign in
to post a comment