| 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 "drt_updater.dart"; | 8 import "drt_updater.dart"; |
| 9 import "test_suite.dart"; | 9 import "test_suite.dart"; |
| 10 import "path.dart"; | 10 import "path.dart"; |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 print(''); | 875 print(''); |
| 876 } | 876 } |
| 877 } | 877 } |
| 878 | 878 |
| 879 | 879 |
| 880 /** | 880 /** |
| 881 * Find the test option specification for a given option key. | 881 * Find the test option specification for a given option key. |
| 882 */ | 882 */ |
| 883 _TestOptionSpecification _getSpecification(String name) { | 883 _TestOptionSpecification _getSpecification(String name) { |
| 884 for (var option in _options) { | 884 for (var option in _options) { |
| 885 if (option.keys.any((key) => key == name)) { | 885 if (option.keys.contains(name)) { |
| 886 return option; | 886 return option; |
| 887 } | 887 } |
| 888 } | 888 } |
| 889 print('Unknown test option $name'); | 889 print('Unknown test option $name'); |
| 890 exit(1); | 890 exit(1); |
| 891 } | 891 } |
| 892 | 892 |
| 893 | 893 |
| 894 List<_TestOptionSpecification> _options; | 894 List<_TestOptionSpecification> _options; |
| 895 } | 895 } |
| OLD | NEW |