1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-21 07:38:07 +02:00

Expose the optional UserUnit entry as a page property

This commit is contained in:
Sean Burke 2016-11-21 14:39:04 -07:00
parent 8a1ed8ab1f
commit f76cd2ce43
4 changed files with 25 additions and 3 deletions

View file

@ -769,6 +769,9 @@ describe('api', function() {
it('gets ref', function () {
expect(page.ref).toEqual({ num: 15, gen: 0 });
});
it('gets userUnit', function () {
expect(page.userUnit).toEqual(1.0);
});
it('gets view', function () {
expect(page.view).toEqual([0, 0, 595.28, 841.89]);
});