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

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

Issue 11275025: Clean up test.dart framework. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | tools/testing/dart/test_runner.dart » ('j') | tools/testing/dart/test_runner.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_runner.dart » ('j') | tools/testing/dart/test_runner.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698