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

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

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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 | « tools/testing/dart/drt_updater.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | 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) 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 return _expandHelper('compiler', configuration); 545 return _expandHelper('compiler', configuration);
546 } 546 }
547 547
548 // Expand runtimes. 548 // Expand runtimes.
549 var runtimes = configuration['runtime']; 549 var runtimes = configuration['runtime'];
550 if (runtimes.contains(',')) { 550 if (runtimes.contains(',')) {
551 return _expandHelper('runtime', configuration); 551 return _expandHelper('runtime', configuration);
552 } else { 552 } else {
553 // All runtimes eventually go through this path, after expansion. 553 // All runtimes eventually go through this path, after expansion.
554 var updater = runtimeUpdater(configuration); 554 var updater = runtimeUpdater(configuration);
555 if (updater !== null) { 555 if (updater != null) {
556 updater.update(); 556 updater.update();
557 } 557 }
558 } 558 }
559 559
560 // Adjust default timeout based on mode, compiler, and sometimes runtime. 560 // Adjust default timeout based on mode, compiler, and sometimes runtime.
561 if (configuration['timeout'] == -1) { 561 if (configuration['timeout'] == -1) {
562 var timeout = 60; 562 var timeout = 60;
563 switch (configuration['compiler']) { 563 switch (configuration['compiler']) {
564 case 'dartc': 564 case 'dartc':
565 timeout *= 4; 565 timeout *= 4;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 return option; 669 return option;
670 } 670 }
671 } 671 }
672 print('Unknown test option $name'); 672 print('Unknown test option $name');
673 exit(1); 673 exit(1);
674 } 674 }
675 675
676 676
677 List<_TestOptionSpecification> _options; 677 List<_TestOptionSpecification> _options;
678 } 678 }
OLDNEW
« no previous file with comments | « tools/testing/dart/drt_updater.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698