1 var dactyllib = require("utils").module("dactyl");
3 var setupModule = function (module) {
4 controller = mozmill.getBrowserController();
5 dactyl = new dactyllib.Controller(controller);
8 var teardownModule = function (module) {
12 var teardownTest = function (test) {
13 dactyl.closeMessageWindow();
16 var testRunCommand_ExecutingOutputCommand_OutputDisplayed = function () {
17 const EXPECTED_OUTPUT = "foobar";
18 const COMMAND = "run echo " + EXPECTED_OUTPUT;
20 dactyl.runExCommand(COMMAND);
22 dactyl.assertMessageWindow(RegExp(EXPECTED_OUTPUT));
25 var testRunCommand_RepeatArg_LastCommandRepeated = function () {
26 const EXPECTED_OUTPUT = /foobar$/; // XXX
27 const COMMAND = "run echo 'foobar'";
28 const REPEAT_COMMAND = "run!";
30 dactyl.runExCommand(COMMAND);
31 dactyl.closeMessageWindow();
32 dactyl.runExCommand(REPEAT_COMMAND);
34 dactyl.assertMessageWindow(EXPECTED_OUTPUT);