Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: chrome/tools/automated_ui_test_tools/auto_ui_test_input_generator.py

Issue 40226: Fix files with lines > 80 cols. Part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/ui/omnibox_uitest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/automated_ui_test_tools/auto_ui_test_input_generator.py
===================================================================
--- chrome/tools/automated_ui_test_tools/auto_ui_test_input_generator.py (revision 11111)
+++ chrome/tools/automated_ui_test_tools/auto_ui_test_input_generator.py (working copy)
@@ -61,7 +61,8 @@
Outputs a part of the full coverage, starting at command number
|command_to_start_at| and ending at command number |command_to_start_at| +
|commands_per_file|. Command numbering starts at 0, and the maximum
- command number is number_of_actions_we_choose_from ^ actions_per_command - 1.
+ command number is number_of_actions_we_choose_from ^ actions_per_command -
+ 1.
If |command_to_start_at| + |commands_per_file| is greater than the maximum
command number, then only the commands up to the maximum command number
are printed.
@@ -264,8 +265,8 @@
return doc, root_element
def __WriteToOutputFile(self, file_name, output):
- """Writes |output| to file with name |filename|. Overwriting any pre-existing
- file.
+ """Writes |output| to file with name |filename|. Overwriting any
+ pre-existing file.
Args:
file_name: Name of the file to create.
@@ -364,7 +365,8 @@
is_complete = False
file_counter = 0
- # Split the file name so we can include the file number before the extension.
+ # Split the file name so we can include the file number before the
+ # extension.
base_file_name, extension = os.path.splitext(file_name)
command_num = 0
@@ -399,7 +401,8 @@
parser = optparse.OptionParser()
parser.set_defaults(full_coverage=False)
parser.add_option("-i", "--action-list-file", dest="input_file_name",
- type="string", action="store", default="possible_actions.txt",
+ type="string", action="store",
+ default="possible_actions.txt",
help="input file with a test of newline separated actions"
"which are possible. Default is 'possible_actions.txt'")
parser.add_option("-o", "--output", dest="output_file_name", type="string",
« no previous file with comments | « chrome/test/ui/omnibox_uitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698