| 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 configuration['unchecked'] = !configuration['checked']; | 478 configuration['unchecked'] = !configuration['checked']; |
| 479 configuration['host_unchecked'] = !configuration['host_checked']; | 479 configuration['host_unchecked'] = !configuration['host_checked']; |
| 480 | 480 |
| 481 configuration['unminified'] = !configuration['minified']; | 481 configuration['unminified'] = !configuration['minified']; |
| 482 | 482 |
| 483 String runtime = configuration['runtime']; | 483 String runtime = configuration['runtime']; |
| 484 if (runtime == 'firefox') { | 484 if (runtime == 'firefox') { |
| 485 configuration['runtime'] == 'ff'; | 485 configuration['runtime'] == 'ff'; |
| 486 } | 486 } |
| 487 | 487 |
| 488 configuration['browser'] = TestUtils.isBrowserRuntime(runtime); | |
| 489 | |
| 490 // Set the javascript command line flag for less verbose status files. | 488 // Set the javascript command line flag for less verbose status files. |
| 491 configuration['jscl'] = TestUtils.isJsCommandLineRuntime(runtime); | 489 configuration['jscl'] = TestUtils.isJsCommandLineRuntime(runtime); |
| 492 | 490 |
| 493 // Expand the test selectors into a suite name and a simple | 491 // Expand the test selectors into a suite name and a simple |
| 494 // regular expressions to be used on the full path of a test file | 492 // regular expressions to be used on the full path of a test file |
| 495 // in that test suite. If no selectors are explicitly given use | 493 // in that test suite. If no selectors are explicitly given use |
| 496 // the default suite patterns. | 494 // the default suite patterns. |
| 497 var selectors = configuration['selectors']; | 495 var selectors = configuration['selectors']; |
| 498 if (selectors is !Map) { | 496 if (selectors is !Map) { |
| 499 if (selectors == null) { | 497 if (selectors == null) { |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 return option; | 656 return option; |
| 659 } | 657 } |
| 660 } | 658 } |
| 661 print('Unknown test option $name'); | 659 print('Unknown test option $name'); |
| 662 exit(1); | 660 exit(1); |
| 663 } | 661 } |
| 664 | 662 |
| 665 | 663 |
| 666 List<_TestOptionSpecification> _options; | 664 List<_TestOptionSpecification> _options; |
| 667 } | 665 } |
| OLD | NEW |