mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 08:08:07 +02:00
Merge pull request #13437 from calixteman/xfa_mv_root
XFA - Move the fake HTML representation of XFA from the worker to the main thread
This commit is contained in:
commit
8c53bf8647
5 changed files with 50 additions and 32 deletions
|
@ -57,7 +57,8 @@ describe("XFAFactory", function () {
|
|||
|
||||
expect(factory.numberPages).toEqual(2);
|
||||
|
||||
const page1 = factory.getPage(0);
|
||||
const pages = factory.getPages();
|
||||
const page1 = pages.children[0];
|
||||
expect(page1.attributes.style).toEqual({
|
||||
height: "789px",
|
||||
width: "456px",
|
||||
|
@ -99,7 +100,7 @@ describe("XFAFactory", function () {
|
|||
|
||||
// draw element must be on each page.
|
||||
expect(draw.attributes.style).toEqual(
|
||||
factory.getPage(1).children[1].children[0].attributes.style
|
||||
pages.children[1].children[1].children[0].attributes.style
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue