| Index: tools/browser_tester/browser_tester.py
|
| ===================================================================
|
| --- tools/browser_tester/browser_tester.py (revision 6583)
|
| +++ tools/browser_tester/browser_tester.py (working copy)
|
| @@ -38,6 +38,11 @@
|
| metavar='DEST SRC',
|
| help='Add file SRC to be served from the HTTP server, '
|
| 'to be made visible under the path DEST.')
|
| + parser.add_option('--serving_dir', dest='serving_dirs', action='append',
|
| + type='string', default=[],
|
| + metavar='DIRNAME',
|
| + help='Add directory DIRNAME to be served from the HTTP '
|
| + 'server to be made visible under the root.')
|
| parser.add_option('--test_arg', dest='test_args', action='append',
|
| type='string', nargs=2, default=[],
|
| metavar='KEY VALUE',
|
| @@ -157,7 +162,8 @@
|
| dict(options.map_redirects),
|
| options.allow_404,
|
| options.bandwidth,
|
| - listener)
|
| + listener,
|
| + options.serving_dirs)
|
|
|
| browser = browsertester.browserlauncher.ChromeLauncher(options)
|
|
|
| @@ -223,6 +229,7 @@
|
| options, args = parser.parse_args()
|
|
|
| if len(args) != 0:
|
| + print args
|
| parser.error('Invalid arguments')
|
|
|
| # Validate the URL
|
|
|