fx-compat: Restore tests and test using actual Zotero executable
The test runner now uses the Zotero executable from `zotero-standalone-build/staging` rather than the Firefox from `zotero-standalone-build/xulrunner`. Along with testing the actual program, this restores visible UI updates during tests, which should make debugging various things easier. We can also now remove anything related to Zotero being an extension. Many tests are still broken, but this at least lets us start running them.
This commit is contained in:
parent
5d08359dc9
commit
730e86d661
7 changed files with 51 additions and 44 deletions
|
@ -557,11 +557,10 @@ function initPDFToolsPath() {
|
|||
* (i.e., test/tests/data)
|
||||
*/
|
||||
function getTestDataDirectory() {
|
||||
var resource = Services.io.getProtocolHandler("resource").
|
||||
QueryInterface(Components.interfaces.nsIResProtocolHandler),
|
||||
resURI = Services.io.newURI("resource://zotero-unit-tests/data", null, null);
|
||||
return Services.io.newURI(resource.resolveURI(resURI), null, null).
|
||||
QueryInterface(Components.interfaces.nsIFileURL).file;
|
||||
var file = Zotero.File.pathToFile(Zotero.resourcesDir);
|
||||
file.append('tests');
|
||||
file.append('data');
|
||||
return file;
|
||||
}
|
||||
|
||||
function getTestDataUrl(path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue