mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Add Test for PDFDocumentProxy_getPageIndex
This commit is contained in:
parent
0fa44d7233
commit
c547f17ee5
1 changed files with 8 additions and 0 deletions
|
@ -54,6 +54,14 @@ describe('api', function() {
|
|||
expect(true).toEqual(true);
|
||||
});
|
||||
});
|
||||
it('gets page index', function() {
|
||||
// reference to second page
|
||||
var ref = {num: 17, gen: 0};
|
||||
var promise = doc.getPageIndex(ref);
|
||||
waitsForPromise(promise, function(pageIndex) {
|
||||
expect(pageIndex).toEqual(1);
|
||||
});
|
||||
});
|
||||
it('gets destinations', function() {
|
||||
var promise = doc.getDestinations();
|
||||
waitsForPromise(promise, function(data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue