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

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

Issue 10854156: Add a support for a slow marker in status files. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
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("drt_updater.dart"); 8 #import("drt_updater.dart");
9 #import("test_suite.dart"); 9 #import("test_suite.dart");
10 10
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 } 540 }
541 541
542 // Adjust default timeout based on mode, compiler, and sometimes runtime. 542 // Adjust default timeout based on mode, compiler, and sometimes runtime.
543 if (configuration['timeout'] == -1) { 543 if (configuration['timeout'] == -1) {
544 var timeout = 60; 544 var timeout = 60;
545 switch (configuration['compiler']) { 545 switch (configuration['compiler']) {
546 case 'dartc': 546 case 'dartc':
547 timeout *= 4; 547 timeout *= 4;
548 break; 548 break;
549 case 'dart2js': 549 case 'dart2js':
550 case 'frog': 550 timeout = 30;
551 if (configuration['mode'] == 'debug') { 551 if (configuration['mode'] == 'debug') {
552 timeout *= 8; 552 timeout *= 8;
553 } 553 }
554 if (configuration['host_checked']) { 554 if (configuration['host_checked']) {
555 timeout *= 16; 555 timeout *= 16;
556 } 556 }
557 if (Contains(configuration['runtime'], 557 if (Contains(configuration['runtime'],
558 const ['ie', 'ff', 'chrome', 'safari', 'opera'])) { 558 const ['ie', 'ff', 'chrome', 'safari', 'opera'])) {
559 timeout *= 4; // Allow additional time for browser testing to run. 559 timeout *= 8; // Allow additional time for browser testing to run.
560 } 560 }
561 break; 561 break;
562 default: 562 default:
563 if (configuration['mode'] == 'debug') { 563 if (configuration['mode'] == 'debug') {
564 timeout *= 2; 564 timeout *= 2;
565 } 565 }
566 if (Contains(configuration['runtime'], const ['drt', 'dartium'])) { 566 if (Contains(configuration['runtime'], const ['drt', 'dartium'])) {
567 timeout *= 4; // Allow additional time for browser testing to run. 567 timeout *= 4; // Allow additional time for browser testing to run.
568 } 568 }
569 break; 569 break;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 return option; 642 return option;
643 } 643 }
644 } 644 }
645 print('Unknown test option $name'); 645 print('Unknown test option $name');
646 exit(1); 646 exit(1);
647 } 647 }
648 648
649 649
650 List<_TestOptionSpecification> _options; 650 List<_TestOptionSpecification> _options;
651 } 651 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698