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

Merge pull request #7832 from seanburke-wf/expose-userunit-on-page

Expose the optional UserUnit entry as a page property
This commit is contained in:
Tim van der Meij 2016-11-22 21:18:57 +01:00 committed by GitHub
commit 9ff19985c0
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]);
});