Use sinon fakeXmlHttpRequest.
Change out the custom synchronous XHR to use sinon's fake XHR. This allows to decide exactly when to respond to XHRs.
Showing
3 changed files
with
3 additions
and
0 deletions
libs/sinon/sinon-server-1.9.0.js
0 → 100644
This diff is collapsed.
Click to expand it.
... | @@ -3,6 +3,9 @@ | ... | @@ -3,6 +3,9 @@ |
3 | <head> | 3 | <head> |
4 | <meta charset="utf-8"> | 4 | <meta charset="utf-8"> |
5 | <title>video.js HLS Plugin Test Suite</title> | 5 | <title>video.js HLS Plugin Test Suite</title> |
6 | <!-- Load sinon server for fakeXHR --> | ||
7 | <script src="../libs/sinon/sinon-server-1.9.0.js"></script> | ||
8 | |||
6 | <!-- Load local QUnit. --> | 9 | <!-- Load local QUnit. --> |
7 | <link rel="stylesheet" href="../libs/qunit/qunit.css" media="screen"> | 10 | <link rel="stylesheet" href="../libs/qunit/qunit.css" media="screen"> |
8 | <script src="../libs/qunit/qunit.js"></script> | 11 | <script src="../libs/qunit/qunit.js"></script> | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment