mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #4795 from Snuffleupagus/getData-unittest
Add unit test for getData
This commit is contained in:
commit
179f4231e6
1 changed files with 6 additions and 0 deletions
|
@ -87,6 +87,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