Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: tools/testing/dart/test_options.dart

Issue 210893002: Add a generic ie marker that we can use in the status files (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698