1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 21:14:11 +01:00

Use argCount: "0" for :restart.

--HG--
extra : rebase_source : 7ae0cb785c72e9c379f12e516621a5a2ade39aa2
This commit is contained in:
Doug Kearns
2011-06-29 01:52:51 +10:00
parent 78a1e62ca2
commit 8c873c0ae8
2 changed files with 5 additions and 2 deletions

View File

@@ -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, "'") + "]",

View File

@@ -486,7 +486,9 @@ var tests = {
reloadall: {
noOutput: [""]
},
restart: {}, // Skip
restart: {
error: ["foo"]
},
runtime: {
init: [
"js File('~/.pentadactyl/some-nonexistent/good.css').write('')",