mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Add unit test for getData
This commit is contained in:
parent
3051667397
commit
e00b986bd3
1 changed files with 6 additions and 0 deletions
|
@ -86,6 +86,12 @@ describe('api', function() {
|
||||||
expect(metadata.metadata.get('dc:title')).toEqual('Basic API Test');
|
expect(metadata.metadata.get('dc:title')).toEqual('Basic API Test');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
it('gets data', function() {
|
||||||
|
var promise = doc.getData();
|
||||||
|
waitsForPromise(promise, function (data) {
|
||||||
|
expect(true).toEqual(true);
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
describe('Page', function() {
|
describe('Page', function() {
|
||||||
var resolvePromise;
|
var resolvePromise;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue