summaryrefslogtreecommitdiff
path: root/common/tests/functional
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2011-02-07 21:16:00 +1100
committerDoug Kearns <dougkearns@gmail.com>2011-02-07 21:16:00 +1100
commit6331a0c532813b91caba5d7481536b97ef0d59da (patch)
tree60f54cad3b9beeed7ddbfc1fb2c27141897426f8 /common/tests/functional
parent9205867efd02711bc7e9af0574cee1f7dc1d0815 (diff)
downloadpentadactyl-6331a0c532813b91caba5d7481536b97ef0d59da.tar.gz
'Fix' :delcommand testCommands test.
This was failing due to *evil* test dependencies.
Diffstat (limited to 'common/tests/functional')
-rw-r--r--common/tests/functional/testCommands.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/common/tests/functional/testCommands.js b/common/tests/functional/testCommands.js
index 60fc7b8f..2b1b733c 100644
--- a/common/tests/functional/testCommands.js
+++ b/common/tests/functional/testCommands.js
@@ -137,9 +137,16 @@ var tests = {
]
},
delbmarks: { anyOutput: ["", "about:pentadactyl"] },
- delcommand: {
- noOutput: ["foo"] // TODO: Why is this failing? "Unexpected command output: delcommand foo"
- },
+ delcommand: [
+ {
+ init: ["comclear", "command foo bar"],
+ noOutput: ["foo"]
+ },
+ {
+ init: ["comclear"],
+ error: ["foo"]
+ }
+ ],
delmacros: {
error: [""],
noOutput: ["x"],