diff options
-rw-r--r-- | common/content/tabs.js | 4 | ||||
-rw-r--r-- | common/tests/functional/testCommands.js | 19 |
2 files changed, 17 insertions, 6 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js index dabc2f31..2d41525d 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -624,7 +624,7 @@ var Tabs = Module("tabs", { let alternate = tabs.alternate; try { - commands.execute(args[0] || "", null, true); + dactyl.execute(args[0], null, true); } finally { tabs.updateSelectionHistory([tabs.getTab(), alternate]); @@ -641,7 +641,7 @@ var Tabs = Module("tabs", { function (args) { dactyl.withSavedValues(["forceNewTab"], function () { this.forceNewTab = true; - commands.execute(args[0] || "", null, true); + dactyl.execute(args[0], null, true); }); }, { argCount: "+", diff --git a/common/tests/functional/testCommands.js b/common/tests/functional/testCommands.js index c01e1c58..2a93a5b0 100644 --- a/common/tests/functional/testCommands.js +++ b/common/tests/functional/testCommands.js @@ -328,9 +328,10 @@ var tests = { multiOutput: [""] }, keepalt: { - error: [""], + error: ["", "some-nonexistent-command"], noOutput: ["js ''"], - anyOutput: ["echo 'foo'"] + anyOutput: ["echo 'foo'"], + completions: [["", hasItems]] }, let: {}, // Deprecated. Fuck it. listcommands: { @@ -671,10 +672,20 @@ var tests = { ["-index=", hasNItems(2)] ] }, - tab: {}, + tab: { + error: ["", "some-nonexistent-command"], + noOutput: ["js ''"], + anyOutput: ["echo 'foo'"], + completions: [["", hasItems]] + }, tabattach: {}, tabdetach: {}, - tabdo: {}, + tabdo: { + error: ["", "some-nonexistent-command"], + noOutput: ["js ''"], + anyOutput: ["echo 'foo'"], + completions: [["", hasItems]] + }, tabduplicate: {}, tablast: {}, tabmove: { |