| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 false, | 131 false, |
| 132 'bool'), | 132 'bool'), |
| 133 new _TestOptionSpecification( | 133 new _TestOptionSpecification( |
| 134 'minified', | 134 'minified', |
| 135 'Enable minification in the compiler', | 135 'Enable minification in the compiler', |
| 136 ['--minified'], | 136 ['--minified'], |
| 137 [], | 137 [], |
| 138 false, | 138 false, |
| 139 'bool'), | 139 'bool'), |
| 140 new _TestOptionSpecification( | 140 new _TestOptionSpecification( |
| 141 'csp', |
| 142 'Run tests under Content Security Policy restrictions', |
| 143 ['--csp'], |
| 144 [], |
| 145 false, |
| 146 'bool'), |
| 147 new _TestOptionSpecification( |
| 141 'timeout', | 148 'timeout', |
| 142 'Timeout in seconds', | 149 'Timeout in seconds', |
| 143 ['-t', '--timeout'], | 150 ['-t', '--timeout'], |
| 144 [], | 151 [], |
| 145 -1, | 152 -1, |
| 146 'int'), | 153 'int'), |
| 147 new _TestOptionSpecification( | 154 new _TestOptionSpecification( |
| 148 'progress', | 155 'progress', |
| 149 'Progress indication mode', | 156 'Progress indication mode', |
| 150 ['-p', '--progress'], | 157 ['-p', '--progress'], |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 return option; | 684 return option; |
| 678 } | 685 } |
| 679 } | 686 } |
| 680 print('Unknown test option $name'); | 687 print('Unknown test option $name'); |
| 681 exit(1); | 688 exit(1); |
| 682 } | 689 } |
| 683 | 690 |
| 684 | 691 |
| 685 List<_TestOptionSpecification> _options; | 692 List<_TestOptionSpecification> _options; |
| 686 } | 693 } |
| OLD | NEW |