1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Removes hijack describe() hack from unit tests.

This commit is contained in:
Yury Delendik 2016-04-11 07:37:35 -05:00
parent 44c63bca28
commit 879340d741
3 changed files with 26 additions and 38 deletions

View file

@ -93,12 +93,6 @@ function initializePDFJS(callback) {
// Configure the worker.
displayGlobal.PDFJS.workerSrc = '../../src/worker_loader.js';
// Release describe() calls.
window.describe = oldDescribe;
describeQueue.forEach(function (args) {
oldDescribe.apply(window, args);
});
callback();
});
}
@ -204,9 +198,3 @@ function initializePDFJS(callback) {
}
}());
// Hacking describe() to wait for PDFJS to be loaded, since Jasmine executes
// it without waiting for libs to be loaded and fails to use PDFJS members.
var oldDescribe = window.describe, describeQueue = [];
window.describe = function () {
describeQueue.push(Array.prototype.slice.call(arguments, 0));
};