| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # | 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 3 # Copyright 2008 Google Inc. All Rights Reserved. | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 4 | 5 |
| 5 """This generates the input file for automated_ui_tests.exe. | 6 """This generates the input file for automated_ui_tests.exe. |
| 6 | 7 |
| 7 We take in a list of possible actions separated by new lines, the number of | 8 We take in a list of possible actions separated by new lines, the number of |
| 8 commands per file, and the number of actions per command, and generate | 9 commands per file, and the number of actions per command, and generate |
| 9 a single random file, or one or more files containing all possible commands, | 10 a single random file, or one or more files containing all possible commands, |
| 10 or one file with a partial set of possible commands starting at a certain | 11 or one file with a partial set of possible commands starting at a certain |
| 11 command number. | 12 command number. |
| 12 | 13 |
| 13 Example usage: | 14 Example usage: |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 options.start_at_command , False) | 466 options.start_at_command , False) |
| 466 if options.is_verbose == True: | 467 if options.is_verbose == True: |
| 467 print "Finished writing partial file." | 468 print "Finished writing partial file." |
| 468 else: | 469 else: |
| 469 test_generator.CreateRandomFile(options.output_file_name) | 470 test_generator.CreateRandomFile(options.output_file_name) |
| 470 if options.is_verbose == True: | 471 if options.is_verbose == True: |
| 471 print "Output written to file: " + options.output_file_name | 472 print "Output written to file: " + options.output_file_name |
| 472 | 473 |
| 473 if __name__ == '__main__': | 474 if __name__ == '__main__': |
| 474 main() | 475 main() |
| OLD | NEW |