mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-16 07:33:32 +02:00
Use argCount: "0" for :restart.
--HG-- extra : rebase_source : 7ae0cb785c72e9c379f12e516621a5a2ade39aa2
This commit is contained in:
@@ -1914,7 +1914,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
|
|
||||||
commands.add(["res[tart]"],
|
commands.add(["res[tart]"],
|
||||||
"Force " + config.appName + " to restart",
|
"Force " + config.appName + " to restart",
|
||||||
function () { dactyl.restart(); });
|
function () { dactyl.restart(); },
|
||||||
|
{ argCount: "0" });
|
||||||
|
|
||||||
function findToolbar(name) util.evaluateXPath(
|
function findToolbar(name) util.evaluateXPath(
|
||||||
"//*[@toolbarname=" + util.escapeString(name, "'") + "]",
|
"//*[@toolbarname=" + util.escapeString(name, "'") + "]",
|
||||||
|
|||||||
@@ -486,7 +486,9 @@ var tests = {
|
|||||||
reloadall: {
|
reloadall: {
|
||||||
noOutput: [""]
|
noOutput: [""]
|
||||||
},
|
},
|
||||||
restart: {}, // Skip
|
restart: {
|
||||||
|
error: ["foo"]
|
||||||
|
},
|
||||||
runtime: {
|
runtime: {
|
||||||
init: [
|
init: [
|
||||||
"js File('~/.pentadactyl/some-nonexistent/good.css').write('')",
|
"js File('~/.pentadactyl/some-nonexistent/good.css').write('')",
|
||||||
|
|||||||
Reference in New Issue
Block a user