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 | |
153 // Opens the JavaScriptConsole window. While it isn't modal, it takes focus | 144 // Opens the JavaScriptConsole window. While it isn't modal, it takes focus |
154 // from the current browser window, so most of the test can't continue until | 145 // from the current browser window, so most of the test can't continue until |
155 // it is dismissed. | 146 // it is dismissed. |
156 // XML element: <JavaScriptConsole/> | 147 // XML element: <JavaScriptConsole/> |
157 bool JavaScriptConsole(); | 148 bool JavaScriptConsole(); |
158 | 149 |
159 // Opens the About dialog. This dialog is modal so a majority of the test | 150 // Opens the About dialog. This dialog is modal so a majority of the test |
160 // can't be completed until it is dismissed. | 151 // can't be completed until it is dismissed. |
161 // XML element: <About/> | 152 // XML element: <About/> |
162 bool OpenAboutDialog(); | 153 bool OpenAboutDialog(); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 bool PressSpaceBar(); | 210 bool PressSpaceBar(); |
220 | 211 |
221 // Simulates a tab key press on the active window. | 212 // Simulates a tab key press on the active window. |
222 // XML element: <PressTabKey/> | 213 // XML element: <PressTabKey/> |
223 bool PressTabKey(); | 214 bool PressTabKey(); |
224 | 215 |
225 // Simulates a page up key press on the active window. | 216 // Simulates a page up key press on the active window. |
226 // XML element: <UpArrow/> | 217 // XML element: <UpArrow/> |
227 bool PressUpArrow(); | 218 bool PressUpArrow(); |
228 | 219 |
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 | |
250 // Stars the current page. This opens a dialog that may or may not be | 220 // Stars the current page. This opens a dialog that may or may not be |
251 // dismissed. | 221 // dismissed. |
252 // XML element: <Star/> | 222 // XML element: <Star/> |
253 bool StarPage(); | 223 bool StarPage(); |
254 | 224 |
255 // Views source of the current page. | 225 // Views source of the current page. |
256 // Returns true if call to activate the accelerator is successful. | 226 // Returns true if call to activate the accelerator is successful. |
257 // XML element: <ViewSource/> | 227 // XML element: <ViewSource/> |
258 bool ViewSource(); | 228 bool ViewSource(); |
259 | 229 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 // results. | 388 // results. |
419 bool debug_logging_enabled_; | 389 bool debug_logging_enabled_; |
420 | 390 |
421 // A delay in second we wait for after each action. Useful for debugging. | 391 // A delay in second we wait for after each action. Useful for debugging. |
422 int post_action_delay_; | 392 int post_action_delay_; |
423 | 393 |
424 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest); | 394 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest); |
425 }; | 395 }; |
426 | 396 |
427 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ | 397 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ |
OLD | NEW |