| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ | 5 #ifndef CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ |
| 6 #define CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ | 6 #define CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ |
| 7 | 7 |
| 8 // This takes an input file of commands, which consist of a series of | 8 // This takes an input file of commands, which consist of a series of |
| 9 // actions, and runs every command, reporting the status of each one | 9 // actions, and runs every command, reporting the status of each one |
| 10 // to an output file once all the commands have been run. | 10 // to an output file once all the commands have been run. |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // Changes the encoding of the page (the encoding is selected at random | 134 // Changes the encoding of the page (the encoding is selected at random |
| 135 // from a list of encodings). | 135 // from a list of encodings). |
| 136 // Returns true if call to activate the accelerator is successful. | 136 // Returns true if call to activate the accelerator is successful. |
| 137 // XML element: <ChangeEncoding/> | 137 // XML element: <ChangeEncoding/> |
| 138 bool ChangeEncoding(); | 138 bool ChangeEncoding(); |
| 139 | 139 |
| 140 // Opens one of the dialogs (chosen randomly) and exercises it. | 140 // Opens one of the dialogs (chosen randomly) and exercises it. |
| 141 // XML element: <Dialog/> | 141 // XML element: <Dialog/> |
| 142 bool ExerciseDialog(); | 142 bool ExerciseDialog(); |
| 143 | 143 |
| 144 // Activates "find in page" on the current page. |
| 145 // XML element: <FindInPage/> |
| 146 bool FindInPage(); |
| 147 |
| 148 // Navigates to the Home page. |
| 149 // Returns true if call to activate the accelerator is successful. |
| 150 // XML element: <Home/> |
| 151 bool Home(); |
| 152 |
| 144 // Opens the JavaScriptConsole window. While it isn't modal, it takes focus | 153 // Opens the JavaScriptConsole window. While it isn't modal, it takes focus |
| 145 // from the current browser window, so most of the test can't continue until | 154 // from the current browser window, so most of the test can't continue until |
| 146 // it is dismissed. | 155 // it is dismissed. |
| 147 // XML element: <JavaScriptConsole/> | 156 // XML element: <JavaScriptConsole/> |
| 148 bool JavaScriptConsole(); | 157 bool JavaScriptConsole(); |
| 149 | 158 |
| 150 // Opens the About dialog. This dialog is modal so a majority of the test | 159 // Opens the About dialog. This dialog is modal so a majority of the test |
| 151 // can't be completed until it is dismissed. | 160 // can't be completed until it is dismissed. |
| 152 // XML element: <About/> | 161 // XML element: <About/> |
| 153 bool OpenAboutDialog(); | 162 bool OpenAboutDialog(); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 bool PressSpaceBar(); | 219 bool PressSpaceBar(); |
| 211 | 220 |
| 212 // Simulates a tab key press on the active window. | 221 // Simulates a tab key press on the active window. |
| 213 // XML element: <PressTabKey/> | 222 // XML element: <PressTabKey/> |
| 214 bool PressTabKey(); | 223 bool PressTabKey(); |
| 215 | 224 |
| 216 // Simulates a page up key press on the active window. | 225 // Simulates a page up key press on the active window. |
| 217 // XML element: <UpArrow/> | 226 // XML element: <UpArrow/> |
| 218 bool PressUpArrow(); | 227 bool PressUpArrow(); |
| 219 | 228 |
| 229 // Activates the next tab on the active browser window. |
| 230 // XML element: <SelectNextTab/> |
| 231 bool SelectNextTab(); |
| 232 |
| 233 // Activates the previous tab on the active browser window. |
| 234 // XML element: <SelectPrevTab/> |
| 235 bool SelectPreviousTab(); |
| 236 |
| 237 // Displays the bookmark bar. |
| 238 // Returns true if call to activate the accelerator is successful. |
| 239 // XML element: <ShowBookmarks/> |
| 240 bool ShowBookmarkBar(); |
| 241 |
| 242 // Opens the Downloads page in the current active browser window. |
| 243 // XML element: <Downloads/> |
| 244 bool ShowDownloads(); |
| 245 |
| 246 // Opens the History page in the current active browser window. |
| 247 // XML element: <History/> |
| 248 bool ShowHistory(); |
| 249 |
| 220 // Stars the current page. This opens a dialog that may or may not be | 250 // Stars the current page. This opens a dialog that may or may not be |
| 221 // dismissed. | 251 // dismissed. |
| 222 // XML element: <Star/> | 252 // XML element: <Star/> |
| 223 bool StarPage(); | 253 bool StarPage(); |
| 224 | 254 |
| 225 // Views source of the current page. | 255 // Views source of the current page. |
| 226 // Returns true if call to activate the accelerator is successful. | 256 // Returns true if call to activate the accelerator is successful. |
| 227 // XML element: <ViewSource/> | 257 // XML element: <ViewSource/> |
| 228 bool ViewSource(); | 258 bool ViewSource(); |
| 229 | 259 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // results. | 418 // results. |
| 389 bool debug_logging_enabled_; | 419 bool debug_logging_enabled_; |
| 390 | 420 |
| 391 // A delay in second we wait for after each action. Useful for debugging. | 421 // A delay in second we wait for after each action. Useful for debugging. |
| 392 int post_action_delay_; | 422 int post_action_delay_; |
| 393 | 423 |
| 394 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest); | 424 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest); |
| 395 }; | 425 }; |
| 396 | 426 |
| 397 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ | 427 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ |
| OLD | NEW |