mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-03 19:34:11 +01:00
Add a half slew of generic command execution/completion/code coverage tests. Add unhandled exception checking to tests. Fix some detected merge artifacts.
This commit is contained in:
@@ -7,9 +7,14 @@ var setupModule = function (module) {
|
||||
dactyl = new dactyllib.Controller(controller);
|
||||
};
|
||||
|
||||
var teardownModule = function (module) {
|
||||
dactyl.teardown();
|
||||
}
|
||||
|
||||
var setupTest = function (test) {
|
||||
controller.open(FIND_TEST_PAGE);
|
||||
controller.waitForPageLoad(controller.tabs.activeTab);
|
||||
controller.sleep(1000);
|
||||
};
|
||||
|
||||
var testFindCommand_PresentAlphabeticText_TextSelected = function () {
|
||||
@@ -32,6 +37,8 @@ var testFindCommand_MissingText_ErrorMessageDisplayed = function () {
|
||||
function runTextSearchCommand(str) {
|
||||
dactyl.runViCommand("/" + str);
|
||||
dactyl.runViCommand([["VK_RETURN"]]);
|
||||
|
||||
controller.sleep(0);
|
||||
}
|
||||
|
||||
function assertTextFoundInPage(text) {
|
||||
|
||||
Reference in New Issue
Block a user