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

Slightly improved Crypto unit tests #6093

Merged
merged 1 commit into from
Jun 9, 2015
Merged

Slightly improved Crypto unit tests #6093

merged 1 commit into from
Jun 9, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

Currently in the tests which check that incorrect passwords are rejected, we don't ensure that the exceptions thrown are the ones we expect. This patch improves the current situation, so that we actually can be sure that the code "fails" in the correct way.

Note: This patch also fixes some cases of weird indentation in the file.

Edit: Easier reviewing with https://github.com/mozilla/pdf.js/pull/6093/files?w=1.

@timvandermeij
Copy link
Contributor

Aside from the comment above this looks really good!

Currently in the tests which check that incorrect passwords are rejected, we don't ensure that the exceptions thrown are the ones we expect. This patch improves the current situation, so that we actually can be sure that the code "fails" in the correct way.

*Note:* This patch also fixes some cases of weird indentation in the file.
@Snuffleupagus
Copy link
Collaborator Author

The function name was shortened.

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2015

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/dcdb1784b07bf24/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2015

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/d303d3cc9e91028/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2015

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/d303d3cc9e91028/output.txt

Total script time: 0.60 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2015

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/dcdb1784b07bf24/output.txt

Total script time: 0.93 mins

  • Unit Tests: FAILED

@timvandermeij
Copy link
Contributor

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2015

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/4eccbcd561b934e/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2015

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/24116262dc5651c/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2015

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/4eccbcd561b934e/output.txt

Total script time: 0.62 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2015

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/24116262dc5651c/output.txt

Total script time: 0.95 mins

  • Unit Tests: Passed

timvandermeij added a commit that referenced this pull request Jun 9, 2015
…unittests

Slightly improved Crypto unit tests
@timvandermeij timvandermeij merged commit fda6c18 into mozilla:master Jun 9, 2015
@timvandermeij
Copy link
Contributor

Looks good, thanks!

@Snuffleupagus Snuffleupagus deleted the slightly-improved-crypto-unittests branch June 9, 2015 22:34
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