mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Fixes unit tests and adds few for util.js
This commit is contained in:
parent
00f1d6dbf1
commit
0dd445bf18
4 changed files with 62 additions and 5 deletions
|
@ -6,7 +6,7 @@
|
|||
describe('api', function() {
|
||||
// TODO run with worker enabled
|
||||
PDFJS.disableWorker = true;
|
||||
var basicApiUrl = '../pdfs/basicapi.pdf';
|
||||
var basicApiUrl = combineUrl(window.location.href, '../pdfs/basicapi.pdf');
|
||||
function waitsForPromise(promise) {
|
||||
waitsFor(function() {
|
||||
return promise.isResolved || promise.isRejected;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue