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

Unified Diff: tools/testing/dart/test_options.dart

Issue 11275217: Refactor test.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: "waitForDartium" -> "updateDartium". Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/testing/dart/multitest.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « tools/testing/dart/multitest.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698