| 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 // Returns true if call to activate the accelerator is successful. | 134 // Returns true if call to activate the accelerator is successful. |
| 135 // XML element: <Back/> | 135 // XML element: <Back/> |
| 136 bool BackButton(); | 136 bool BackButton(); |
| 137 | 137 |
| 138 // Changes the encoding of the page (the encoding is selected at random | 138 // Changes the encoding of the page (the encoding is selected at random |
| 139 // from a list of encodings). | 139 // from a list of encodings). |
| 140 // Returns true if call to activate the accelerator is successful. | 140 // Returns true if call to activate the accelerator is successful. |
| 141 // XML element: <ChangeEncoding/> | 141 // XML element: <ChangeEncoding/> |
| 142 bool ChangeEncoding(); | 142 bool ChangeEncoding(); |
| 143 | 143 |
| 144 // Uses accelerator to close the active tab if it isn't the only tab. | |
| 145 // Returns false if active tab is the only tab, true otherwise. | |
| 146 // XML element: <CloseTab/> | |
| 147 bool CloseActiveTab(); | |
| 148 | |
| 149 // Opens one of the dialogs (chosen randomly) and exercises it. | 144 // Opens one of the dialogs (chosen randomly) and exercises it. |
| 150 // XML element: <Dialog/> | 145 // XML element: <Dialog/> |
| 151 bool ExerciseDialog(); | 146 bool ExerciseDialog(); |
| 152 | 147 |
| 153 // Activates "find in page" on the current page. | 148 // Activates "find in page" on the current page. |
| 154 // XML element: <FindInPage/> | 149 // XML element: <FindInPage/> |
| 155 bool FindInPage(); | 150 bool FindInPage(); |
| 156 | 151 |
| 157 // Activates forward button in active window. | 152 // Activates forward button in active window. |
| 158 // Returns true if call to activate the accelerator is successful. | 153 // Returns true if call to activate the accelerator is successful. |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 // results. | 469 // results. |
| 475 bool debug_logging_enabled_; | 470 bool debug_logging_enabled_; |
| 476 | 471 |
| 477 // A delay in second we wait for after each action. Useful for debugging. | 472 // A delay in second we wait for after each action. Useful for debugging. |
| 478 int post_action_delay_; | 473 int post_action_delay_; |
| 479 | 474 |
| 480 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest); | 475 DISALLOW_COPY_AND_ASSIGN(AutomatedUITest); |
| 481 }; | 476 }; |
| 482 | 477 |
| 483 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ | 478 #endif // CHROME_TEST_AUTOMATED_UI_TESTS_AUTOMATED_UI_TESTS_H_ |
| OLD | NEW |