mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-07 11:43:37 +02:00
Partially fix some lying :bmark output tests.
This commit is contained in:
@@ -59,8 +59,8 @@ var tests = {
|
|||||||
completions: [["", hasItems]]
|
completions: [["", hasItems]]
|
||||||
},
|
},
|
||||||
bmark: {
|
bmark: {
|
||||||
someOutput: ["bmark", "bmark -tags=foo -titlt=bar -keyword=baz -charset=UTF-8 -post=quux about:pentadactyl"],
|
singleOutput: ["", "-tags=foo -title=bar -keyword=baz -charset=UTF-8 -post=quux about:pentadactyl"],
|
||||||
error: ["bmark -tags=foo -titlt=bar -keyword=baz -charset=nonExistentCharset -post=quux about:pentadactyl"],
|
error: ["-tags=foo -title=bar -keyword=baz -charset=nonExistentCharset -post=quux about:pentadactyl"],
|
||||||
completions: [
|
completions: [
|
||||||
"-max=1 -keyword=",
|
"-max=1 -keyword=",
|
||||||
"-max=1 -keyword=foo -tags=",
|
"-max=1 -keyword=foo -tags=",
|
||||||
@@ -610,7 +610,7 @@ for (var val in Iterator(tests)) (function ([command, paramsList]) {
|
|||||||
case "someOutput":
|
case "someOutput":
|
||||||
runCommands(command, testName, commands, function (cmd, test) {
|
runCommands(command, testName, commands, function (cmd, test) {
|
||||||
var res = dactyl.assertMessage(/./, "Expected command output: " + cmd);
|
var res = dactyl.assertMessage(/./, "Expected command output: " + cmd);
|
||||||
if (res && res && test != null)
|
if (res && test != null)
|
||||||
dactyl.assertMessage(test, "Running " + testName + " tests failed: " + cmd.quote() + " " + test.toSource());
|
dactyl.assertMessage(test, "Running " + testName + " tests failed: " + cmd.quote() + " " + test.toSource());
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user