1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 07:12:28 +01:00

Partially fix some lying :bmark output tests.

This commit is contained in:
Doug Kearns
2011-02-02 15:19:36 +11:00
parent c12dc0ec43
commit 1ad028860a

View File

@@ -59,8 +59,8 @@ var tests = {
completions: [["", hasItems]]
},
bmark: {
someOutput: ["bmark", "bmark -tags=foo -titlt=bar -keyword=baz -charset=UTF-8 -post=quux about:pentadactyl"],
error: ["bmark -tags=foo -titlt=bar -keyword=baz -charset=nonExistentCharset -post=quux about:pentadactyl"],
singleOutput: ["", "-tags=foo -title=bar -keyword=baz -charset=UTF-8 -post=quux about:pentadactyl"],
error: ["-tags=foo -title=bar -keyword=baz -charset=nonExistentCharset -post=quux about:pentadactyl"],
completions: [
"-max=1 -keyword=",
"-max=1 -keyword=foo -tags=",
@@ -610,7 +610,7 @@ for (var val in Iterator(tests)) (function ([command, paramsList]) {
case "someOutput":
runCommands(command, testName, commands, function (cmd, test) {
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());
});
break;