mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 09:54:12 +01:00
Merge default.
--HG-- branch : groups
This commit is contained in:
@@ -431,6 +431,8 @@ var IO = Module("io", {
|
|||||||
|
|
||||||
if (!file || !file.exists()) {
|
if (!file || !file.exists()) {
|
||||||
util.dactyl.echoerr("Command not found: " + program);
|
util.dactyl.echoerr("Command not found: " + program);
|
||||||
|
if (callable(blocking))
|
||||||
|
util.trapErrors(blocking);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ var tests = {
|
|||||||
completions: ["", "~/"]
|
completions: ["", "~/"]
|
||||||
},
|
},
|
||||||
colorscheme: {
|
colorscheme: {
|
||||||
error: ["", "some-non-existent-scheme"]
|
error: ["", "some-nonexistent-scheme"]
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
init: ["comclear"],
|
init: ["comclear"],
|
||||||
@@ -137,9 +137,16 @@ var tests = {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
delbmarks: { anyOutput: ["", "about:pentadactyl"] },
|
delbmarks: { anyOutput: ["", "about:pentadactyl"] },
|
||||||
delcommand: {
|
delcommand: [
|
||||||
noOutput: ["foo"] // TODO: Why is this failing? "Unexpected command output: delcommand foo"
|
{
|
||||||
},
|
init: ["comclear", "command foo bar"],
|
||||||
|
noOutput: ["foo"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
init: ["comclear"],
|
||||||
|
error: ["foo"]
|
||||||
|
}
|
||||||
|
],
|
||||||
delmacros: {
|
delmacros: {
|
||||||
error: [""],
|
error: [""],
|
||||||
noOutput: ["x"],
|
noOutput: ["x"],
|
||||||
@@ -296,7 +303,7 @@ var tests = {
|
|||||||
loadplugins: {},
|
loadplugins: {},
|
||||||
macros: {
|
macros: {
|
||||||
multiOutput: [""],
|
multiOutput: [""],
|
||||||
completeions: [""]
|
completions: [""]
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
multiOutput: ["", "i"],
|
multiOutput: ["", "i"],
|
||||||
@@ -313,7 +320,7 @@ var tests = {
|
|||||||
"-mode=some-nonexistent-mode <C-a> <C-a>",
|
"-mode=some-nonexistent-mode <C-a> <C-a>",
|
||||||
"-gtroup=some-nonexistent-group <C-a> <C-a>"
|
"-gtroup=some-nonexistent-group <C-a> <C-a>"
|
||||||
],
|
],
|
||||||
completeions: [
|
completions: [
|
||||||
["", hasItems],
|
["", hasItems],
|
||||||
["-", hasItems],
|
["-", hasItems],
|
||||||
["-mode=ex ", hasItems],
|
["-mode=ex ", hasItems],
|
||||||
@@ -326,7 +333,7 @@ var tests = {
|
|||||||
},
|
},
|
||||||
mapclear: {
|
mapclear: {
|
||||||
noOutput: [""],
|
noOutput: [""],
|
||||||
completeions: [""]
|
completions: [""]
|
||||||
},
|
},
|
||||||
mapgroup: {
|
mapgroup: {
|
||||||
multiOutput: [""],
|
multiOutput: [""],
|
||||||
@@ -340,7 +347,7 @@ var tests = {
|
|||||||
"some-nonexistent-group",
|
"some-nonexistent-group",
|
||||||
"foo -d='foo group' -nopersist 'bar.com,http://bar/*,http://bar,^http:'"
|
"foo -d='foo group' -nopersist 'bar.com,http://bar/*,http://bar,^http:'"
|
||||||
],
|
],
|
||||||
completeions: [
|
completions: [
|
||||||
"",
|
"",
|
||||||
"foo "
|
"foo "
|
||||||
],
|
],
|
||||||
@@ -349,13 +356,13 @@ var tests = {
|
|||||||
mark: {
|
mark: {
|
||||||
error: ["", "#", "xy"],
|
error: ["", "#", "xy"],
|
||||||
noOutput: ["y"],
|
noOutput: ["y"],
|
||||||
completeions: [""]
|
completions: [""]
|
||||||
},
|
},
|
||||||
marks: {
|
marks: {
|
||||||
init: ["delmarks q"],
|
init: ["delmarks q"],
|
||||||
multiOutput: ["", "y"],
|
multiOutput: ["", "y"],
|
||||||
error: ["q", "#"],
|
error: ["q", "#"],
|
||||||
completeions: [""]
|
completions: [""]
|
||||||
},
|
},
|
||||||
messages: {
|
messages: {
|
||||||
anyOutput: ["messages"]
|
anyOutput: ["messages"]
|
||||||
@@ -370,7 +377,7 @@ var tests = {
|
|||||||
"! some-nonexistent-rc.penta"
|
"! some-nonexistent-rc.penta"
|
||||||
],
|
],
|
||||||
error: ["some-nonexistent-rc.penta"],
|
error: ["some-nonexistent-rc.penta"],
|
||||||
completeions: [""],
|
completions: [""],
|
||||||
cleanup: ["silent !rm some-nonexistent-rc.penta"]
|
cleanup: ["silent !rm some-nonexistent-rc.penta"]
|
||||||
},
|
},
|
||||||
mksyntax: {
|
mksyntax: {
|
||||||
@@ -384,7 +391,7 @@ var tests = {
|
|||||||
"some-nonexistent-pentadactyl-dir/",
|
"some-nonexistent-pentadactyl-dir/",
|
||||||
"some-nonexistent-pentadactyl-dir/foo.vim"
|
"some-nonexistent-pentadactyl-dir/foo.vim"
|
||||||
],
|
],
|
||||||
completeions: [
|
completions: [
|
||||||
["", hasItems]
|
["", hasItems]
|
||||||
],
|
],
|
||||||
cleanup: ["silent !rm -r some-nonexistent-pentadactyl-dir/"]
|
cleanup: ["silent !rm -r some-nonexistent-pentadactyl-dir/"]
|
||||||
@@ -469,7 +476,7 @@ var tests = {
|
|||||||
"some-nonexistent/good.js",
|
"some-nonexistent/good.js",
|
||||||
"some-nonexistent/good.penta"
|
"some-nonexistent/good.penta"
|
||||||
],
|
],
|
||||||
errors: [
|
error: [
|
||||||
"some-nonexistent/bad.js",
|
"some-nonexistent/bad.js",
|
||||||
"some-nonexistent/bad.penta"
|
"some-nonexistent/bad.penta"
|
||||||
],
|
],
|
||||||
@@ -556,7 +563,7 @@ var tests = {
|
|||||||
".pentadactyl/some-nonexistent/good.js",
|
".pentadactyl/some-nonexistent/good.js",
|
||||||
".pentadactyl/some-nonexistent/good.penta"
|
".pentadactyl/some-nonexistent/good.penta"
|
||||||
],
|
],
|
||||||
errors: [
|
error: [
|
||||||
"~/.pentadactyl/some-nonexistent/bad.js",
|
"~/.pentadactyl/some-nonexistent/bad.js",
|
||||||
"~/.pentadactyl/some-nonexistent/bad.penta",
|
"~/.pentadactyl/some-nonexistent/bad.penta",
|
||||||
"./.pentadactyl/some-nonexistent/bad.js",
|
"./.pentadactyl/some-nonexistent/bad.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user