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 "compiler_configuration.dart" show CompilerConfiguration; | 10 import "compiler_configuration.dart" show CompilerConfiguration; |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 configuration['runtime'] == 'ff'; | 658 configuration['runtime'] == 'ff'; |
659 } | 659 } |
660 | 660 |
661 String compiler = configuration['compiler']; | 661 String compiler = configuration['compiler']; |
662 configuration['browser'] = TestUtils.isBrowserRuntime(runtime); | 662 configuration['browser'] = TestUtils.isBrowserRuntime(runtime); |
663 configuration['analyzer'] = TestUtils.isCommandLineAnalyzer(compiler); | 663 configuration['analyzer'] = TestUtils.isCommandLineAnalyzer(compiler); |
664 | 664 |
665 // Set the javascript command line flag for less verbose status files. | 665 // Set the javascript command line flag for less verbose status files. |
666 configuration['jscl'] = TestUtils.isJsCommandLineRuntime(runtime); | 666 configuration['jscl'] = TestUtils.isJsCommandLineRuntime(runtime); |
667 | 667 |
| 668 // Allow suppression that is valid for all ie versions |
| 669 configuration['ie'] = runtime.startsWith('ie'); |
| 670 |
668 // Expand the test selectors into a suite name and a simple | 671 // Expand the test selectors into a suite name and a simple |
669 // regular expressions to be used on the full path of a test file | 672 // regular expressions to be used on the full path of a test file |
670 // in that test suite. If no selectors are explicitly given use | 673 // in that test suite. If no selectors are explicitly given use |
671 // the default suite patterns. | 674 // the default suite patterns. |
672 var selectors = configuration['selectors']; | 675 var selectors = configuration['selectors']; |
673 if (selectors is !Map) { | 676 if (selectors is !Map) { |
674 if (selectors == null) { | 677 if (selectors == null) { |
675 selectors = new List.from(defaultTestSelectors); | 678 selectors = new List.from(defaultTestSelectors); |
676 } | 679 } |
677 Map<String, RegExp> selectorMap = new Map<String, RegExp>(); | 680 Map<String, RegExp> selectorMap = new Map<String, RegExp>(); |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 return option; | 809 return option; |
807 } | 810 } |
808 } | 811 } |
809 print('Unknown test option $name'); | 812 print('Unknown test option $name'); |
810 exit(1); | 813 exit(1); |
811 } | 814 } |
812 | 815 |
813 | 816 |
814 List<_TestOptionSpecification> _options; | 817 List<_TestOptionSpecification> _options; |
815 } | 818 } |
OLD | NEW |