| 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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 // Create the artificial 'unchecked' options that test status files | 469 // Create the artificial 'unchecked' options that test status files |
| 470 // expect. | 470 // expect. |
| 471 configuration['unchecked'] = !configuration['checked']; | 471 configuration['unchecked'] = !configuration['checked']; |
| 472 configuration['host_unchecked'] = !configuration['host_checked']; | 472 configuration['host_unchecked'] = !configuration['host_checked']; |
| 473 | 473 |
| 474 String runtime = configuration['runtime']; | 474 String runtime = configuration['runtime']; |
| 475 if (runtime == 'firefox') { | 475 if (runtime == 'firefox') { |
| 476 configuration['runtime'] == 'ff'; | 476 configuration['runtime'] == 'ff'; |
| 477 } | 477 } |
| 478 | 478 |
| 479 configuration['browser'] = TestUtils.isBrowserRuntime(runtime); | |
| 480 | |
| 481 // Set the javascript command line flag for less verbose status files. | 479 // Set the javascript command line flag for less verbose status files. |
| 482 configuration['jscl'] = TestUtils.isJsCommandLineRuntime(runtime); | 480 configuration['jscl'] = TestUtils.isJsCommandLineRuntime(runtime); |
| 483 | 481 |
| 484 // Expand the test selectors into a suite name and a simple | 482 // Expand the test selectors into a suite name and a simple |
| 485 // regular expressions to be used on the full path of a test file | 483 // regular expressions to be used on the full path of a test file |
| 486 // in that test suite. If no selectors are explicitly given use | 484 // in that test suite. If no selectors are explicitly given use |
| 487 // the default suite patterns. | 485 // the default suite patterns. |
| 488 var selectors = configuration['selectors']; | 486 var selectors = configuration['selectors']; |
| 489 if (selectors is !Map) { | 487 if (selectors is !Map) { |
| 490 if (selectors == null) { | 488 if (selectors == null) { |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 return option; | 647 return option; |
| 650 } | 648 } |
| 651 } | 649 } |
| 652 print('Unknown test option $name'); | 650 print('Unknown test option $name'); |
| 653 exit(1); | 651 exit(1); |
| 654 } | 652 } |
| 655 | 653 |
| 656 | 654 |
| 657 List<_TestOptionSpecification> _options; | 655 List<_TestOptionSpecification> _options; |
| 658 } | 656 } |
| OLD | NEW |