Add unit test for PDF recognition with DOI

Also some support code that was useful here and will probably be
useful for other tests. This is a pretty complicated thing to test, but
it seems to work.
This commit is contained in:
Simon Kornblith 2015-03-08 15:59:53 -04:00
parent 50cd396918
commit 3f0f7af71a
6 changed files with 148 additions and 0 deletions

View file

@ -1,5 +1,6 @@
Components.utils.import("resource://gre/modules/FileUtils.jsm");
Components.utils.import("resource://gre/modules/osfile.jsm");
Components.utils.import("resource://zotero/q.js");
var ZoteroUnit = Components.classes["@mozilla.org/commandlinehandler/general-startup;1?type=zotero-unit"].
getService(Components.interfaces.nsISupports).