summaryrefslogtreecommitdiffstats
path: root/chrome/test/reliability/automated_ui_tests.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/reliability/automated_ui_tests.cc')
-rw-r--r--chrome/test/reliability/automated_ui_tests.cc54
1 files changed, 0 insertions, 54 deletions
diff --git a/chrome/test/reliability/automated_ui_tests.cc b/chrome/test/reliability/automated_ui_tests.cc
index 0c36fff..2f43c29 100644
--- a/chrome/test/reliability/automated_ui_tests.cc
+++ b/chrome/test/reliability/automated_ui_tests.cc
@@ -388,8 +388,6 @@ bool AutomatedUITest::DoAction(const std::string& action) {
did_complete_action = ForceCrash();
} else if (LowerCaseEqualsASCII(action, "dialog")) {
did_complete_action = ExerciseDialog();
- } else if (LowerCaseEqualsASCII(action, "downarrow")) {
- did_complete_action = PressDownArrow();
} else if (LowerCaseEqualsASCII(action, "downloads")) {
did_complete_action = ShowDownloads();
} else if (LowerCaseEqualsASCII(action, "duplicatetab")) {
@@ -423,18 +421,6 @@ bool AutomatedUITest::DoAction(const std::string& action) {
did_complete_action = OpenAndActivateNewBrowserWindow(NULL);
} else if (LowerCaseEqualsASCII(action, "options")) {
did_complete_action = Options();
- } else if (LowerCaseEqualsASCII(action, "pagedown")) {
- did_complete_action = PressPageDown();
- } else if (LowerCaseEqualsASCII(action, "pageup")) {
- did_complete_action = PressPageUp();
- } else if (LowerCaseEqualsASCII(action, "pressenterkey")) {
- did_complete_action = PressEnterKey();
- } else if (LowerCaseEqualsASCII(action, "pressescapekey")) {
- did_complete_action = PressEscapeKey();
- } else if (LowerCaseEqualsASCII(action, "pressspacebar")) {
- did_complete_action = PressSpaceBar();
- } else if (LowerCaseEqualsASCII(action, "presstabkey")) {
- did_complete_action = PressTabKey();
} else if (LowerCaseEqualsASCII(action, "reload")) {
did_complete_action = ReloadPage();
} else if (LowerCaseEqualsASCII(action, "restoretab")) {
@@ -472,8 +458,6 @@ bool AutomatedUITest::DoAction(const std::string& action) {
did_complete_action = TestTaskManager();
} else if (LowerCaseEqualsASCII(action, "testviewpasswords")) {
did_complete_action = TestViewPasswords();
- } else if (LowerCaseEqualsASCII(action, "uparrow")) {
- did_complete_action = PressUpArrow();
} else if (LowerCaseEqualsASCII(action, "viewpasswords")) {
did_complete_action = OpenViewPasswordsDialog();
} else if (LowerCaseEqualsASCII(action, "viewsource")) {
@@ -553,38 +537,6 @@ bool AutomatedUITest::Options() {
return RunCommandAsync(IDC_OPTIONS);
}
-bool AutomatedUITest::PressDownArrow() {
- return SimulateKeyPress(ui::VKEY_DOWN);
-}
-
-bool AutomatedUITest::PressEnterKey() {
- return SimulateKeyPress(ui::VKEY_RETURN);
-}
-
-bool AutomatedUITest::PressEscapeKey() {
- return SimulateKeyPress(ui::VKEY_ESCAPE);
-}
-
-bool AutomatedUITest::PressPageDown() {
- return SimulateKeyPress(ui::VKEY_PRIOR);
-}
-
-bool AutomatedUITest::PressPageUp() {
- return SimulateKeyPress(ui::VKEY_NEXT);
-}
-
-bool AutomatedUITest::PressSpaceBar() {
- return SimulateKeyPress(ui::VKEY_SPACE);
-}
-
-bool AutomatedUITest::PressTabKey() {
- return SimulateKeyPress(ui::VKEY_TAB);
-}
-
-bool AutomatedUITest::PressUpArrow() {
- return SimulateKeyPress(ui::VKEY_UP);
-}
-
bool AutomatedUITest::StarPage() {
return RunCommandAsync(IDC_BOOKMARK_PAGE);
}
@@ -672,12 +624,6 @@ bool AutomatedUITest::ForceCrash() {
return true;
}
-bool AutomatedUITest::SimulateKeyPress(ui::KeyboardCode key) {
- scoped_refptr<TabProxy> tab(GetActiveTab());
- tab->SimulateKeyPress(key);
- return true;
-}
-
bool AutomatedUITest::InitXMLReader() {
base::FilePath input_path = GetInputFilePath();