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

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: 80chars. 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
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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 return _expandHelper('compiler', configuration); 537 return _expandHelper('compiler', configuration);
538 } 538 }
539 539
540 // Expand runtimes. 540 // Expand runtimes.
541 var runtimes = configuration['runtime']; 541 var runtimes = configuration['runtime'];
542 if (runtimes.contains(',')) { 542 if (runtimes.contains(',')) {
543 return _expandHelper('runtime', configuration); 543 return _expandHelper('runtime', configuration);
544 } else { 544 } else {
545 // All runtimes eventually go through this path, after expansion. 545 // All runtimes eventually go through this path, after expansion.
546 var updater = runtimeUpdater(configuration); 546 var updater = runtimeUpdater(configuration);
547 if (updater !== null) { 547 if (updater != null) {
548 updater.update(); 548 updater.update();
549 } 549 }
550 } 550 }
551 551
552 // Adjust default timeout based on mode, compiler, and sometimes runtime. 552 // Adjust default timeout based on mode, compiler, and sometimes runtime.
553 if (configuration['timeout'] == -1) { 553 if (configuration['timeout'] == -1) {
554 var timeout = 60; 554 var timeout = 60;
555 switch (configuration['compiler']) { 555 switch (configuration['compiler']) {
556 case 'dartc': 556 case 'dartc':
557 timeout *= 4; 557 timeout *= 4;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 return option; 658 return option;
659 } 659 }
660 } 660 }
661 print('Unknown test option $name'); 661 print('Unknown test option $name');
662 exit(1); 662 exit(1);
663 } 663 }
664 664
665 665
666 List<_TestOptionSpecification> _options; 666 List<_TestOptionSpecification> _options;
667 } 667 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698