Chromium Code Reviews| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 445 case 'new_analyzer': | 445 case 'new_analyzer': |
| 446 validRuntimes = const ['none']; | 446 validRuntimes = const ['none']; |
| 447 break; | 447 break; |
| 448 case 'none': | 448 case 'none': |
| 449 case 'dart2dart': | 449 case 'dart2dart': |
| 450 validRuntimes = const ['vm', 'drt', 'dartium']; | 450 validRuntimes = const ['vm', 'drt', 'dartium']; |
| 451 break; | 451 break; |
| 452 } | 452 } |
| 453 if (!validRuntimes.contains(config['runtime'])) { | 453 if (!validRuntimes.contains(config['runtime'])) { |
| 454 isValid = false; | 454 isValid = false; |
| 455 print("Warning: combination of ${config['compiler']} and " | 455 print("Warning: combination of compiler '${config['compiler']}' and " |
| 456 "${config['runtime']} is invalid. Skipping this combination."); | 456 "runtime '${config['runtime']}' is invalid. " |
| 457 "Skipping this combination."); | |
|
kustermann
2013/03/26 08:27:26
Indentation.
kevmoo-old
2013/03/26 13:16:38
Explain...
kustermann
2013/03/26 13:43:07
AFAIK we indent the two following lines to the sam
| |
| 457 } | 458 } |
| 458 if ((config['runtime'] == 'ie9' || config['runtime'] == 'ie10') && | 459 if ((config['runtime'] == 'ie9' || config['runtime'] == 'ie10') && |
| 459 Platform.operatingSystem != 'windows') { | 460 Platform.operatingSystem != 'windows') { |
| 460 isValid = false; | 461 isValid = false; |
| 461 print("Warning cannot run Internet Explorer on non-Windows operating" | 462 print("Warning cannot run Internet Explorer on non-Windows operating" |
| 462 " system."); | 463 " system."); |
| 463 } | 464 } |
| 464 if (config['shard'] < 1 || config['shard'] > config['shards']) { | 465 if (config['shard'] < 1 || config['shard'] > config['shards']) { |
| 465 isValid = false; | 466 isValid = false; |
| 466 print("Error: shard index is ${config['shard']} out of " | 467 print("Error: shard index is ${config['shard']} out of " |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 698 return option; | 699 return option; |
| 699 } | 700 } |
| 700 } | 701 } |
| 701 print('Unknown test option $name'); | 702 print('Unknown test option $name'); |
| 702 exit(1); | 703 exit(1); |
| 703 } | 704 } |
| 704 | 705 |
| 705 | 706 |
| 706 List<_TestOptionSpecification> _options; | 707 List<_TestOptionSpecification> _options; |
| 707 } | 708 } |
| OLD | NEW |