mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Use test.py for unit tests too.
This commit is contained in:
parent
cec7a92a99
commit
e18a2c512e
17 changed files with 1115 additions and 658 deletions
|
@ -6,11 +6,11 @@
|
|||
describe('api', function() {
|
||||
// TODO run with worker enabled
|
||||
PDFJS.disableWorker = true;
|
||||
var basicApiUrl = '/basicapi.pdf';
|
||||
var basicApiUrl = '../pdfs/basicapi.pdf';
|
||||
function waitsForPromise(promise) {
|
||||
waitsFor(function() {
|
||||
return promise.isResolved || promise.isRejected;
|
||||
}, 250);
|
||||
}, 1000);
|
||||
}
|
||||
function expectAfterPromise(promise, successCallback) {
|
||||
waitsForPromise(promise);
|
||||
|
@ -25,8 +25,6 @@ describe('api', function() {
|
|||
describe('PDFJS', function() {
|
||||
describe('getDocument', function() {
|
||||
it('creates pdf doc from URL', function() {
|
||||
console.log('what is');
|
||||
debugger;
|
||||
var promise = PDFJS.getDocument(basicApiUrl);
|
||||
expectAfterPromise(promise, function(data) {
|
||||
expect(true).toEqual(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue