mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Added getOperatorList to api.js
This commit is contained in:
parent
834c69aa0a
commit
1d00e9d13c
2 changed files with 62 additions and 2 deletions
|
@ -130,10 +130,18 @@ describe('api', function() {
|
|||
it('gets ref', function() {
|
||||
expect(page.ref).toEqual({num: 15, gen: 0});
|
||||
});
|
||||
|
||||
it('gets operator list', function() {
|
||||
var promise = page.getOperatorList();
|
||||
waitsForPromise(promise, function (oplist) {
|
||||
expect(!!oplist.fnArray).toEqual(true);
|
||||
expect(!!oplist.argsArray).toEqual(true);
|
||||
expect(oplist.lastChunk).toEqual(true);
|
||||
});
|
||||
});
|
||||
// TODO rotate
|
||||
// TODO viewport
|
||||
// TODO annotaions
|
||||
// TOOD text content
|
||||
// TODO operation list
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue