mozilla/pdf.js — pull request #4812 by Snuffleupagus (2014-05-18 21:51:34+00:00)
Title: Add more unit tests for the API

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 fail. I've changed the function to instead return `null`, which fixes these issues (and is also consistent with e.g. `getOutline`).