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 - Implement aspect property on image element #13641

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

calixteman
Copy link
Contributor

@calixteman
Copy link
Contributor Author

A lot of xfa contains image so a lot of failure in reftests are expected.

/botio test

@pdfjsbot
Copy link

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/aba411c362a809d/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/529d545b25aa011/output.txt

test/driver.js Outdated Show resolved Hide resolved
@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 28.77 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 82
  different first/second rendering: 2

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/529d545b25aa011/output.txt

Total script time: 32.77 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 81
  different first/second rendering: 1

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

@marco-c marco-c linked an issue Jun 28, 2021 that may be closed by this pull request
test/driver.js Outdated Show resolved Hide resolved
return loadedPromises;
});

await resolveImages(div);
Copy link
Contributor

Choose a reason for hiding this comment

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

await resolveImages(div) is a list of promises, shouldn't you await them via await Promise.all(await resolveImages(div))?

Copy link
Contributor

Choose a reason for hiding this comment

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

Or, you could add await Promise.all(loadedPromises) at the end of resolveImages and keep the code here as it is.

Copy link
Collaborator

@Snuffleupagus Snuffleupagus Jun 28, 2021

Choose a reason for hiding this comment

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

The second suggestion is definitely the preferred way of doing things here!


Given that this patch moves pre-existing code, it's actually quite interesting that this old issue this hasn't caused any bugs (as far as we know).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I locally got some errors because tiff images are not rendered by neither firefox nor chrome which is expected.
So I disabled promise rejection for image failures for the xfa reftests.

test/driver.js Outdated Show resolved Hide resolved
  - it aims to fix issue mozilla#13634;
  - move some img-related functions in test/drivers.js in order to have images in xfa reftests.
@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

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/769fa4dc9cd8c2b/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/8d6bc475d8187f7/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/769fa4dc9cd8c2b/output.txt

Total script time: 29.29 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/8d6bc475d8187f7/output.txt

Total script time: 33.63 mins

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

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

@calixteman calixteman merged commit 3f02a46 into mozilla:master Jun 28, 2021
@calixteman
Copy link
Contributor Author

/botio makeref

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/69b849161f9bb68/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

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

Total script time: 26.02 mins

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://3.101.106.178:8877/69b849161f9bb68/output.txt

Total script time: 31.16 mins

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

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.

Image not scaled proportionality
4 participants