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

Re-factor destinations/getDestination to reduce unnecessary duplication, and reject non-string inputs #9975

Merged
merged 2 commits into from
Aug 12, 2018

Conversation

Snuffleupagus
Copy link
Collaborator

  • Re-factor destinations/getDestination, in the Catalog, to reduce unnecessary duplication

    Currently, these two methods contain the same boilerplate code for getting the /Dests data.

  • Reject getDestination, in the API, for non-string inputs

    Note how e.g. the getPage method does basic validation of the input.

…e unnecessary duplication

Currently, these two methods contain the same boilerplate code for getting the /Dests data.
Note how e.g. the `getPage` method does basic validation of the input.
@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/eccf390b0f88f4b/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/0ab64bc48232093/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/0ab64bc48232093/output.txt

Total script time: 6.90 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

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

Total script time: 7.98 mins

  • Unit Tests: Passed

@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/68c7eb766e16abe/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/68c7eb766e16abe/output.txt

Total script time: 29.06 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

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

Total script time: 36.71 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@timvandermeij timvandermeij merged commit 1268aea into mozilla:master Aug 12, 2018
@timvandermeij
Copy link
Contributor

Nice clean-up!

@Snuffleupagus Snuffleupagus deleted the getDestination-refactor branch August 12, 2018 13:58
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.

3 participants