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

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

Issue 10909264: Avoid timeouts in dart2js/release/checked. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months 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 | « tests/co19/co19-dart2js.status ('k') | no next file » | 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 timeout *= 4; 544 timeout *= 4;
545 break; 545 break;
546 case 'dart2js': 546 case 'dart2js':
547 timeout = 30; 547 timeout = 30;
548 if (configuration['mode'] == 'debug') { 548 if (configuration['mode'] == 'debug') {
549 timeout *= 8; 549 timeout *= 8;
550 } 550 }
551 if (configuration['host_checked']) { 551 if (configuration['host_checked']) {
552 timeout *= 16; 552 timeout *= 16;
553 } 553 }
554 if (configuration['checked']) {
555 timeout *= 2;
556 }
554 if (Contains(configuration['runtime'], 557 if (Contains(configuration['runtime'],
555 const ['ie', 'ff', 'chrome', 'safari', 'opera'])) { 558 const ['ie', 'ff', 'chrome', 'safari', 'opera'])) {
556 timeout *= 8; // Allow additional time for browser testing to run. 559 timeout *= 8; // Allow additional time for browser testing to run.
557 } 560 }
558 break; 561 break;
559 default: 562 default:
560 if (configuration['mode'] == 'debug') { 563 if (configuration['mode'] == 'debug') {
561 timeout *= 2; 564 timeout *= 2;
562 } 565 }
563 if (Contains(configuration['runtime'], const ['drt', 'dartium'])) { 566 if (Contains(configuration['runtime'], const ['drt', 'dartium'])) {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 return option; 642 return option;
640 } 643 }
641 } 644 }
642 print('Unknown test option $name'); 645 print('Unknown test option $name');
643 exit(1); 646 exit(1);
644 } 647 }
645 648
646 649
647 List<_TestOptionSpecification> _options; 650 List<_TestOptionSpecification> _options;
648 } 651 }
OLDNEW
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698