1
0
Fork 0
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:
Yury Delendik 2014-05-14 06:55:40 -05:00
commit 179f4231e6

View file

@ -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;