Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 | 8 |
| 9 List<String> defaultTestSelectors = | 9 List<String> defaultTestSelectors = |
| 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', | 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 419 } | 419 } |
| 420 | 420 |
| 421 // Adjust default timeout based on mode and component. | 421 // Adjust default timeout based on mode and component. |
| 422 if (configuration['timeout'] == -1) { | 422 if (configuration['timeout'] == -1) { |
| 423 var timeout = 60; | 423 var timeout = 60; |
| 424 switch (configuration['component']) { | 424 switch (configuration['component']) { |
| 425 case 'dartc': | 425 case 'dartc': |
| 426 case 'chromium': | 426 case 'chromium': |
| 427 case 'dartium': | 427 case 'dartium': |
| 428 case 'frogium': | 428 case 'frogium': |
| 429 case 'webdriver': | |
|
Jennifer Messerly
2012/02/10 00:19:06
nice :)
| |
| 429 timeout *= 4; | 430 timeout *= 4; |
| 430 break; | 431 break; |
| 431 case 'leg': | 432 case 'leg': |
| 432 case 'frog': | 433 case 'frog': |
| 433 if (configuration['mode'] == 'debug') { | 434 if (configuration['mode'] == 'debug') { |
| 434 timeout *= 4; | 435 timeout *= 4; |
| 435 } | 436 } |
| 436 break; | 437 break; |
| 437 default: | 438 default: |
| 438 if (configuration['mode'] == 'debug') { | 439 if (configuration['mode'] == 'debug') { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 494 return option; | 495 return option; |
| 495 } | 496 } |
| 496 } | 497 } |
| 497 print('Unknown test option $name'); | 498 print('Unknown test option $name'); |
| 498 exit(1); | 499 exit(1); |
| 499 } | 500 } |
| 500 | 501 |
| 501 | 502 |
| 502 List<_TestOptionSpecification> _options; | 503 List<_TestOptionSpecification> _options; |
| 503 } | 504 } |
| OLD | NEW |