Add Test for PDFDocumentProxy_getPageIndex

This commit is contained in:
Thorben Bochenek 2014-03-19 10:17:58 +01:00
parent 0fa44d7233
commit c547f17ee5

View File

@ -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) {