Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor some xfa*** getters in document.js #14739

Merged
merged 1 commit into from
Apr 3, 2022

Conversation

calixteman
Copy link
Contributor

src/core/document.js Outdated Show resolved Hide resolved
src/core/document.js Show resolved Hide resolved
@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Apr 1, 2022

From: Bot.io (Linux m4)


Received

Command cmd_test from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/0addd64632b77cd/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 1, 2022

From: Bot.io (Windows)


Received

Command cmd_test from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/1b26958ffe78aa4/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 1, 2022

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/0addd64632b77cd/output.txt

Total script time: 23.52 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 7

Image differences available at: http://54.241.84.105:8877/0addd64632b77cd/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Apr 1, 2022

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/1b26958ffe78aa4/output.txt

Total script time: 26.63 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: Passed

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks nicer, thank you!

entries["xdp:xdp"] = stringToUTF8String(xfa.getString());
return entries;
const str = stringToUTF8String(stream.getString());
const data = Object.fromEntries([[key, str]]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you create this object directly, using the { [key]: str } notation, or does that perhaps not work correctly with the development viewer (because of the SystemJS dependency)?

Comment on lines 831 to 840
const entries = {
"xdp:xdp": null,
template: null,
datasets: null,
config: null,
connectionSet: null,
localeSet: null,
stylesheet: null,
"/xdp:xdp": null,
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a particular reason for using null here rather than empty strings as before, since then you could skip the explicit assign of empty strings in get xfaData() below?

@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Apr 3, 2022

From: Bot.io (Linux m4)


Received

Command cmd_test from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/83a5ee7e6ba7336/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 3, 2022

From: Bot.io (Windows)


Received

Command cmd_test from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/4fa9fe1e867de68/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 3, 2022

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/83a5ee7e6ba7336/output.txt

Total script time: 24.23 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 6

Image differences available at: http://54.241.84.105:8877/83a5ee7e6ba7336/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Apr 3, 2022

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/4fa9fe1e867de68/output.txt

Total script time: 26.12 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 1

Image differences available at: http://54.193.163.58:8877/4fa9fe1e867de68/reftest-analyzer.html#web=eq.log

@calixteman calixteman merged commit 45553d6 into mozilla:master Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants