summaryrefslogtreecommitdiffstats
path: root/chrome/tools/automated_ui_test_tools
diff options
context:
space:
mode:
authormaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-10 12:54:04 +0000
committermaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-10 12:54:04 +0000
commitf09c718082535c0de7f066cb63f95809070f35a6 (patch)
tree0c7bbd37cccef8748b8c6e1768d2d95f7989a1a0 /chrome/tools/automated_ui_test_tools
parent15567be3dd3dacb0abae800ede436eac8123482c (diff)
downloadchromium_src-f09c718082535c0de7f066cb63f95809070f35a6.zip
chromium_src-f09c718082535c0de7f066cb63f95809070f35a6.tar.gz
chromium_src-f09c718082535c0de7f066cb63f95809070f35a6.tar.bz2
NO CODE CHANGE.
Fix files with lines > 80 cols. Part 2. Review URL: http://codereview.chromium.org/40226 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/automated_ui_test_tools')
-rwxr-xr-xchrome/tools/automated_ui_test_tools/auto_ui_test_input_generator.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/chrome/tools/automated_ui_test_tools/auto_ui_test_input_generator.py b/chrome/tools/automated_ui_test_tools/auto_ui_test_input_generator.py
index 7e3d3f9..df9bc22 100755
--- a/chrome/tools/automated_ui_test_tools/auto_ui_test_input_generator.py
+++ b/chrome/tools/automated_ui_test_tools/auto_ui_test_input_generator.py
@@ -61,7 +61,8 @@ Options:
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 @@ class AutomatedTestInputGenerator:
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 @@ class AutomatedTestInputGenerator:
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 @@ def ParseCommandLine():
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",