| Index: tools/testing/dart/test_options.dart
|
| diff --git a/tools/testing/dart/test_options.dart b/tools/testing/dart/test_options.dart
|
| index fdd676fd9a31bbbb73fd57aa21c41ce7c0b9ed2e..c2d376673d6a92e69339b322a0abd2d1d1638ef6 100644
|
| --- a/tools/testing/dart/test_options.dart
|
| +++ b/tools/testing/dart/test_options.dart
|
| @@ -424,7 +424,7 @@ Note: currently only implemented for dart2js.''',
|
| validRuntimes = const ['vm', 'drt', 'dartium'];
|
| break;
|
| }
|
| - if (!Contains(config['runtime'], validRuntimes)) {
|
| + if (!validRuntimes.contains(config['runtime'])) {
|
| isValid = false;
|
| print("Warning: combination of ${config['compiler']} and "
|
| "${config['runtime']} is invalid. Skipping this combination.");
|
| @@ -441,7 +441,7 @@ Note: currently only implemented for dart2js.''',
|
| "${config['shards']} shards");
|
| }
|
| if (config['runtime'] == 'dartium' &&
|
| - Contains(config['compiler'], const ['none', 'dart2dart']) &&
|
| + const ['none', 'dart2dart'].contains(config['compiler']) &&
|
| config['checked']) {
|
| // TODO(vsm): Set the DART_FLAGS environment appropriately when
|
| // invoking Selenium to support checked mode. It's not clear
|
| @@ -577,9 +577,12 @@ Note: currently only implemented for dart2js.''',
|
| if (configuration['checked']) {
|
| timeout *= 2;
|
| }
|
| - if (Contains(configuration['runtime'],
|
| - const ['ie9', 'ie10', 'ff', 'chrome', 'safari',
|
| - 'opera'])) {
|
| +
|
| + const BROWSERS = const [
|
| + 'ie9', 'ie10', 'ff', 'chrome', 'safari', 'opera'
|
| + ];
|
| +
|
| + if (BROWSERS.contains(configuration['runtime'])) {
|
| timeout *= 8; // Allow additional time for browser testing to run.
|
| }
|
| break;
|
| @@ -587,7 +590,7 @@ Note: currently only implemented for dart2js.''',
|
| if (configuration['mode'] == 'debug') {
|
| timeout *= 2;
|
| }
|
| - if (Contains(configuration['runtime'], const ['drt', 'dartium'])) {
|
| + if (const ['drt', 'dartium'].contains(configuration['runtime'])) {
|
| timeout *= 4; // Allow additional time for browser testing to run.
|
| }
|
| break;
|
|
|