diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 276fc93b..f025ab4b 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1914,7 +1914,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { commands.add(["res[tart]"], "Force " + config.appName + " to restart", - function () { dactyl.restart(); }); + function () { dactyl.restart(); }, + { argCount: "0" }); function findToolbar(name) util.evaluateXPath( "//*[@toolbarname=" + util.escapeString(name, "'") + "]", diff --git a/common/tests/functional/testCommands.js b/common/tests/functional/testCommands.js index 2a93a5b0..555ee663 100644 --- a/common/tests/functional/testCommands.js +++ b/common/tests/functional/testCommands.js @@ -486,7 +486,9 @@ var tests = { reloadall: { noOutput: [""] }, - restart: {}, // Skip + restart: { + error: ["foo"] + }, runtime: { init: [ "js File('~/.pentadactyl/some-nonexistent/good.css').write('')",