Skip to content

Commit

Permalink
cleaned up as per review by @gijsk
Browse files Browse the repository at this point in the history
  • Loading branch information
crankycoder committed Jun 15, 2017
1 parent 4a222ab commit dbb2b5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion recipe-client-addon/lib/NormandyDriver.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ this.NormandyDriver = function(sandboxManager) {
onInstallFailed(addonInstall) {
reject(`AddonInstall error code: [${addonInstall.error}]`);
},
onDownloadFailed(install) {
onDownloadFailed() {
reject(`Download failed: [${installUrl}]`);
},
}));
Expand Down
4 changes: 1 addition & 3 deletions recipe-client-addon/test/browser/browser_NormandyDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,17 @@ add_task(withDriver(Assert, async function installXpi(driver) {
}));

add_task(withDriver(Assert, async function uninstallInvalidAddonId(driver) {
// Test that we can install an XPI from any URL
const invalidAddonId = "not_a_valid_xpi_id@foo.bar";
try {
await driver.uninstallAddon(invalidAddonId);
ok(false, `Uninstall returned an unexpected null for success`);
ok(false, `Uninstalling an invalid XPI should fail. uninstallAddon resolved successfully though.`);
} catch (e) {
ok(true, `This is the expected failure`);
}
}));


add_task(withDriver(Assert, async function installXpiBadURL(driver) {
// Test that we can install an XPI from any URL
const xpiUrl = "file:///tmp/invalid_xpi.xpi";
try {
await driver.installAddon(xpiUrl);
Expand Down

0 comments on commit dbb2b5a

Please sign in to comment.