Skip to content

Commit

Permalink
Merge pull request #2076 from Orange-OpenSource/xlinkcontroller_unit_…
Browse files Browse the repository at this point in the history
…test_fix_merge

Fix a problem on XLinkController unit tests
  • Loading branch information
Dan Sparacio committed Jul 11, 2017
2 parents 838fd03 + 71f6737 commit e98181b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/unit/streaming.controllers.XLinkController.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,25 @@ const expect = chai.expect;
const context = {};
const eventBus = EventBus(context).getInstance();

function ErrorHandlerMock() {
this.error = undefined;

this.manifestError = function(error) {
this.error = error;
};
}

describe('XLinkController', function () {
let xLinkController;
let errorHandlerMock = new ErrorHandlerMock();


function parseManifest(url, xml, xlinkController) {
let urlUtils = URLUtils(context).getInstance();
let baseUri = urlUtils.parseBaseUrl(url);
let parser = DashParser(context).create({});
let parser = DashParser(context).create({
errorHandler: errorHandlerMock
});
const manifest = parser.parse(xml, xlinkController);

if (manifest) {
Expand Down

0 comments on commit e98181b

Please sign in to comment.