Skip to content

Inline the default Factory-definitions in getDocument #19341

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

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

Snuffleupagus
Copy link
Collaborator

  • Most of the these are only used in the src/display/api.js file, and this leads to slightly shorter code.

  • A number of unit-tests need a BaseCanvasFactory-instance, however that one is available through the PDFDocumentProxy-instance nowadays.

  • For other unit-tests the remaining necessary default Factory-definitions can be moved into the test/unit/test_utils.js file.

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux test

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/4def0cfce396a54/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/4def0cfce396a54/output.txt

Total script time: 28.18 mins

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

Copy link
Contributor

@timvandermeij timvandermeij left a comment

Choose a reason for hiding this comment

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

r=me, with the comment below answered/addressed. Thank you!

 - Most of the these are only used in the `src/display/api.js` file, and this leads to slightly shorter code.

 - A number of unit-tests need a `BaseCanvasFactory`-instance, however that one is available through the `PDFDocumentProxy`-instance nowadays.

 - For other unit-tests the remaining necessary default Factory-definitions can be moved into the `test/unit/test_utils.js` file.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux unittest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/a98d29528c03b72/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/a98d29528c03b72/output.txt

Total script time: 2.33 mins

  • Unit Tests: Passed

@Snuffleupagus Snuffleupagus merged commit 54729a5 into mozilla:master Jan 18, 2025
9 checks passed
@Snuffleupagus Snuffleupagus deleted the api-Default-Factory branch January 18, 2025 13:21
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.

3 participants