completions: [""],
cleanup: ["silent !rm some-nonexistent-rc.penta"]
},
- mksyntax: {
- noOutput: [
- "some-nonexistent-pentadactyl-dir/",
- "! some-nonexistent-pentadactyl-dir/",
- "some-nonexistent-pentadactyl-dir/foo.vim",
- "! some-nonexistent-pentadactyl-dir/foo.vim",
- ],
+ mkvimruntime: {
error: [
- "some-nonexistent-pentadactyl-dir/",
- "some-nonexistent-pentadactyl-dir/foo.vim"
+ "some-nonexistent-pentadactyl-dir/"
],
completions: [
["", hasItems]
- ],
- cleanup: ["silent !rm -r some-nonexistent-pentadactyl-dir/"]
+ ]
},
get mlistkeys() this.listcommands,
mmap: {},
time: {
error: ["", ":some-nonexistent-command"/*, "some_nonexistent_reference"*/], // FIXME
singleOutput: [":js null", "null"]
-
},
get tlistkeys() this.listcommands,
tmap: {},
error: ["foo"],
multiOutput: [
["", function (msg) {
- var res = /(\w+dactyl) (\S+) \(([\^)]+)\) running on:\nMozilla/;
+ var res = /(\w+dactyl) (\S+) \(([\^)]+)\) running on:\nMozilla/.exec(msg);
return res && res[2] != "null" && res[3] != "null";
}]
]
});
}
-function runTest(message, test) {
+function runTest(message, test, ...args) {
if (test)
- var res = test.apply(null, Array.slice(arguments, runTest.length));
+ var res = test.apply(null, args);
if (res !== undefined)
jumlib.assert(res, message);
}