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

Add more unit tests for the API #4812

Merged
merged 1 commit into from
May 19, 2014
Merged

Add more unit tests for the API #4812

merged 1 commit into from
May 19, 2014

Conversation

Snuffleupagus
Copy link
Collaborator

Unit tests can never hurt, so let's add a couple more :-)

While doing this, I also came across a slight issue with getAttachments. Currently when no attachments are present in a file, the function will return undefined which causes the test to timeout. I've changed the function to instead return null, which fixes these issues (and is also consistent with e.g. getOutline).

@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/1e9d48217275eaf/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/72f8d8cde65327e/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/1e9d48217275eaf/output.txt

Total script time: 0.52 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/72f8d8cde65327e/output.txt

Total script time: 0.67 mins

  • Unit Tests: Passed

yurydelendik added a commit that referenced this pull request May 19, 2014
@yurydelendik yurydelendik merged commit b7d8296 into mozilla:master May 19, 2014
@yurydelendik
Copy link
Contributor

Thanks

@Snuffleupagus Snuffleupagus deleted the more-api-unittests branch May 19, 2014 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants