mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +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');
|
||||
});
|
||||
});
|
||||
it('gets data', function() {
|
||||
var promise = doc.getData();
|
||||
waitsForPromise(promise, function (data) {
|
||||
expect(true).toEqual(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
describe('Page', function() {
|
||||
var resolvePromise;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue