diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-26 21:28:11 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-26 21:28:11 +0000 |
commit | 97d0b9e24a70d04d51242f8c7b3a587a5ba6444f (patch) | |
tree | bd4c4c91e0241cea85b2b6850d42324d3d246eb3 /chrome/test/reliability/automated_ui_tests.cc | |
parent | 3e1cde62becabdb60f92914b7baaa3f1db71b1e0 (diff) | |
download | chromium_src-97d0b9e24a70d04d51242f8c7b3a587a5ba6444f.zip chromium_src-97d0b9e24a70d04d51242f8c7b3a587a5ba6444f.tar.gz chromium_src-97d0b9e24a70d04d51242f8c7b3a587a5ba6444f.tar.bz2 |
Use content instead of WebKit for synthesizing keycodes
Also removes unused automation provider code related to key synthesis.
BUG=237267
TBR=jam@chromium.org
Review URL: https://codereview.chromium.org/20581002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213987 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/reliability/automated_ui_tests.cc')
-rw-r--r-- | chrome/test/reliability/automated_ui_tests.cc | 54 |
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(); |