blob: de4eb2b1771ffe1239a7e8f943a05abb9d7d7b81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
var dactyllib = require("utils").module("dactyl");
var setupModule = function (module) {
controller = mozmill.getBrowserController();
dactyl = new dactyllib.Controller(controller);
};
var teardownModule = function (module) {
dactyl.teardown();
}
var teardownTest = function (test) {
dactyl.closeMessageWindow();
};
var testRunCommand_ExecutingOutputCommand_OutputDisplayed = function () {
const EXPECTED_OUTPUT = "foobar";
const COMMAND = "run echo " + EXPECTED_OUTPUT;
dactyl.runExCommand(COMMAND);
dactyl.assertMessageWindow(RegExp(EXPECTED_OUTPUT));
};
var testRunCommand_RepeatArg_LastCommandRepeated = function () {
const EXPECTED_OUTPUT = /foobar$/; // XXX
const COMMAND = "run echo 'foobar'";
const REPEAT_COMMAND = "run!";
dactyl.runExCommand(COMMAND);
dactyl.closeMessageWindow();
dactyl.runExCommand(REPEAT_COMMAND);
dactyl.assertMessageWindow(EXPECTED_OUTPUT);
};
// vim: sw=4 ts=8 et:
|