From 8c873c0ae8391587a90996c946279dcd93376875 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 29 Jun 2011 01:52:51 +1000 Subject: [PATCH] Use argCount: "0" for :restart. --HG-- extra : rebase_source : 7ae0cb785c72e9c379f12e516621a5a2ade39aa2 --- common/content/dactyl.js | 3 ++- common/tests/functional/testCommands.js | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) 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('')",