Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Commit

Permalink
Better error message if build.py hasn't been run before 'cfx test'.
Browse files Browse the repository at this point in the history
  • Loading branch information
toolness committed Nov 23, 2010
1 parent d2c7d29 commit 14dd809
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test-xpi-installation.js
Expand Up @@ -50,6 +50,12 @@ exports.testXPI = function(test) {
var file = getDataFile(XPI_FILENAME);
var appReadyTopicHasFired = false;

if (!file.exists()) {
test.fail("Please run build.py to build sample XPIs needed by " +
"this test.");
return;
}

cleanseEnvironment();

AddonManager.getInstallForFile(file, function(install) {
Expand Down

0 comments on commit 14dd809

Please sign in to comment.