1
0
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:
Kris Maglione
2011-01-28 21:59:48 -05:00
parent 5cba6cbc77
commit 199604041b
14 changed files with 422 additions and 64 deletions

View File

@@ -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) {