| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |