1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-29 10:35:45 +01:00

Clarify some arg counts and some related tests.

--HG--
extra : rebase_source : e50c757b46406988b0bfa0c179ec1e9bad21a446
This commit is contained in:
Doug Kearns
2011-06-29 20:11:22 +10:00
parent 07bd83d7e4
commit ab7ad88b21
9 changed files with 228 additions and 66 deletions

View File

@@ -1886,7 +1886,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
util.rehash(args);
},
{
argCount: "0",
argCount: "0", // FIXME
options: [
{
names: ["+u"],
@@ -2024,7 +2024,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
dactyl.echoerr(e);
}
}, {
argCount: "+",
argCount: "1",
bang: true,
completer: function (context) {
if (/^:/.test(context.filter))
@@ -2055,7 +2055,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
vbs.setFrom = setFrom;
}
}, {
argCount: "+",
argCount: "1",
completer: function (context) completion.ex(context),
count: true,
literal: 0,