Browse Source

Add Test for PDFDocumentProxy_getPageIndex

Thorben Bochenek 11 years ago
parent
commit
c547f17ee5
  1. 8
      test/unit/api_spec.js

8
test/unit/api_spec.js

@ -54,6 +54,14 @@ describe('api', function() {
expect(true).toEqual(true); 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() { it('gets destinations', function() {
var promise = doc.getDestinations(); var promise = doc.getDestinations();
waitsForPromise(promise, function(data) { waitsForPromise(promise, function(data) {

Loading…
Cancel
Save