mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #6187 from Snuffleupagus/more-efficient-getDestination
A couple of improvements of `getDestination` (unit-test included)
This commit is contained in:
commit
1416a1b521
2 changed files with 12 additions and 12 deletions
|
@ -129,6 +129,12 @@ describe('api', function() {
|
|||
0, 841.89, null]);
|
||||
});
|
||||
});
|
||||
it('gets a non-existent destination', function() {
|
||||
var promise = doc.getDestination('non-existent-named-destination');
|
||||
waitsForPromiseResolved(promise, function(data) {
|
||||
expect(data).toEqual(null);
|
||||
});
|
||||
});
|
||||
it('gets attachments', function() {
|
||||
var promise = doc.getAttachments();
|
||||
waitsForPromiseResolved(promise, function (data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue