| OLD | NEW |
| 1 #!/usr/bin/python2.4 | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
| 3 # 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 |
| 4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 5 | 4 |
| 6 """SiteCompare command to invoke the same page in two versions of a browser. | 5 """SiteCompare command to invoke the same page in two versions of a browser. |
| 7 | 6 |
| 8 Does the easiest compatibility test: equality comparison between two different | 7 Does the easiest compatibility test: equality comparison between two different |
| 9 versions of the same browser. Invoked with a series of command line options | 8 versions of the same browser. Invoked with a series of command line options |
| 10 that specify which URLs to check, which browser to use, where to store results, | 9 that specify which URLs to check, which browser to use, where to store results, |
| 11 etc. | 10 etc. |
| 12 """ | 11 """ |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 161 |
| 163 if command["--diffdir"]: | 162 if command["--diffdir"]: |
| 164 comparison_result[1].save( | 163 comparison_result[1].save( |
| 165 drivers.windowing.URLtoFilename(url, command["--diffdir"], ".bmp")) | 164 drivers.windowing.URLtoFilename(url, command["--diffdir"], ".bmp")) |
| 166 | 165 |
| 167 # TODO(jhaas): maybe use the logging module rather than raw file writes | 166 # TODO(jhaas): maybe use the logging module rather than raw file writes |
| 168 log_file.write("%s %s %s %s\n" % (url, | 167 log_file.write("%s %s %s %s\n" % (url, |
| 169 scrape_info_list[0].result, | 168 scrape_info_list[0].result, |
| 170 scrape_info_list[1].result, | 169 scrape_info_list[1].result, |
| 171 result)) | 170 result)) |
| 172 | |
| OLD | NEW |