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

Move the regular expression, used with auto printing in the viewer, to web/ui_utils.js and also use it in the API unit-tests #11449

Merged
merged 1 commit into from
Dec 26, 2019

Conversation

Snuffleupagus
Copy link
Collaborator

Rather than having a copy of this regular expression in the test/unit/api_spec.js file, with a comment about keeping it up-to-date with the code in the viewer (note the incorrect file reference as well), we can just import it instead to simplify all of this.

This is something I noticed while looking at PR #11445, I'll rebase this once that one has landed.

@Snuffleupagus Snuffleupagus changed the title Move the regular expression, used with auto printing in the viewer, t web/ui_utils.js and also use it in the API unit-tests Move the regular expression, used with auto printing in the viewer, to web/ui_utils.js and also use it in the API unit-tests Dec 26, 2019
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/5dfacce13458161/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/5dfacce13458161/output.txt

Total script time: 1.71 mins

Published

@timvandermeij
Copy link
Contributor

Looks good if the newly added unit test is also adjusted.

…o `web/ui_utils.js` and also use it in the API unit-tests

Rather than having a copy of this regular expression in the `test/unit/api_spec.js` file, with a comment about keeping it up-to-date with the code in the viewer (note the incorrect file reference as well), we can just import it instead to simplify all of this.
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/802286d3635211d/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/fa321d6d5879a12/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/802286d3635211d/output.txt

Total script time: 2.63 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/fa321d6d5879a12/output.txt

Total script time: 5.10 mins

  • Unit Tests: Passed

@timvandermeij timvandermeij merged commit 9c767e3 into mozilla:master Dec 26, 2019
@timvandermeij
Copy link
Contributor

Nice improvement!

@Snuffleupagus Snuffleupagus deleted the AutoPrintRegExp branch December 27, 2019 00:08
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