| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library test_options_parser; | 5 library test_options_parser; |
| 6 | 6 |
| 7 import "dart:io"; | 7 import "dart:io"; |
| 8 import "dart:math"; | 8 import "dart:math"; |
| 9 import "drt_updater.dart"; | 9 import "drt_updater.dart"; |
| 10 import "test_suite.dart"; | 10 import "test_suite.dart"; |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 ), | 308 ), |
| 309 new _TestOptionSpecification( | 309 new _TestOptionSpecification( |
| 310 'use_browser_controller', | 310 'use_browser_controller', |
| 311 'Use the new selenium replacement browser-controller.', | 311 'Use the new selenium replacement browser-controller.', |
| 312 ['--use_browser_controller'], | 312 ['--use_browser_controller'], |
| 313 [], | 313 [], |
| 314 false, | 314 false, |
| 315 'bool' | 315 'bool' |
| 316 ), | 316 ), |
| 317 new _TestOptionSpecification( | 317 new _TestOptionSpecification( |
| 318 'clear_safari_cache', |
| 319 'Clear the safari cache (i.e., delete it).', |
| 320 ['--clear_safari_cache'], |
| 321 [], |
| 322 false, |
| 323 'bool' |
| 324 ), |
| 325 new _TestOptionSpecification( |
| 318 'local_ip', | 326 'local_ip', |
| 319 'IP address the http servers should listen on.' | 327 'IP address the http servers should listen on.' |
| 320 'This address is also used for browsers to connect.', | 328 'This address is also used for browsers to connect.', |
| 321 ['--local_ip'], | 329 ['--local_ip'], |
| 322 [], | 330 [], |
| 323 '127.0.0.1'), | 331 '127.0.0.1'), |
| 324 new _TestOptionSpecification( | 332 new _TestOptionSpecification( |
| 325 'record_to_file', | 333 'record_to_file', |
| 326 'Records all the commands that need to be executed and writes it ' | 334 'Records all the commands that need to be executed and writes it ' |
| 327 'out to a file.', | 335 'out to a file.', |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 return option; | 739 return option; |
| 732 } | 740 } |
| 733 } | 741 } |
| 734 print('Unknown test option $name'); | 742 print('Unknown test option $name'); |
| 735 exit(1); | 743 exit(1); |
| 736 } | 744 } |
| 737 | 745 |
| 738 | 746 |
| 739 List<_TestOptionSpecification> _options; | 747 List<_TestOptionSpecification> _options; |
| 740 } | 748 } |
| OLD | NEW |