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

XFA - Add support for reftests #13506

Merged
merged 1 commit into from
Jun 8, 2021
Merged

Conversation

calixteman
Copy link
Contributor

@calixteman calixteman commented Jun 7, 2021

In order to render correctly embedded fonts, we need hack the font loader to get font rules to inject them in the svg.
The idea is to pass a style element through the api to the font loader, load font rules in this element and finally get rules as string in the driver.

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.

I've left a couple of comments, based on a quick first look; although I still haven't looked through the changes in test/driver.js in any detail.

Please note: This feels like the sort of changes where some context (in the commit message and/or PR description) would definitely have helped when going over the code.
For example: Given that you apparently needed to "hack" the API and FontLoader code to support XFA-testing, having explained why upfront would have saved me a little bit of time here.

src/display/font_loader.js Outdated Show resolved Hide resolved
src/display/font_loader.js Outdated Show resolved Hide resolved
test/driver.js Outdated Show resolved Hide resolved
test/driver.js Outdated Show resolved Hide resolved
test/driver.js Outdated Show resolved Hide resolved
test/pdfs/.gitignore Outdated Show resolved Hide resolved
@brendandahl
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2021

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/bae7ab06a934679/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2021

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/38c6c862cd221c0/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2021

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/bae7ab06a934679/output.txt

Total script time: 4.76 mins

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

Image differences available at: http://54.67.70.0:8877/bae7ab06a934679/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2021

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/38c6c862cd221c0/output.txt

Total script time: 5.14 mins

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

Image differences available at: http://3.101.106.178:8877/38c6c862cd221c0/reftest-analyzer.html#web=eq.log

Copy link
Contributor

@brendandahl brendandahl left a comment

Choose a reason for hiding this comment

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

r+ with some minor nits

src/display/font_loader.js Outdated Show resolved Hide resolved
src/display/font_loader.js Show resolved Hide resolved
test/driver.js Outdated Show resolved Hide resolved
test/pdfs/Contestation-Transaction-Carte-Bancaire.pdf.link Outdated Show resolved Hide resolved
@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2021

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/ea8b9350ab47f1f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2021

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/1c0565456a399ea/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2021

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/ea8b9350ab47f1f/output.txt

Total script time: 26.03 mins

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

Image differences available at: http://54.67.70.0:8877/ea8b9350ab47f1f/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2021

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/1c0565456a399ea/output.txt

Total script time: 29.49 mins

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

Image differences available at: http://3.101.106.178:8877/1c0565456a399ea/reftest-analyzer.html#web=eq.log

@Snuffleupagus
Copy link
Collaborator

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2021

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/e2f6228cda4bf72/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2021

From: Bot.io (Windows)


Received

Command cmd_makeref from @Snuffleupagus received. Current queue size: 0

Live output at: http://3.101.106.178:8877/7c6c5d6a6ff22d7/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/e2f6228cda4bf72/output.txt

Total script time: 22.82 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2021

From: Bot.io (Windows)


Success

Full output at http://3.101.106.178:8877/7c6c5d6a6ff22d7/output.txt

Total script time: 26.43 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@Snuffleupagus Snuffleupagus merged commit e8fe071 into mozilla:master Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants