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

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

Issue 9863057: Add DirectoryTestSuite. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Oops. Add changes. Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: tools/testing/dart/test_options.dart
diff --git a/tools/testing/dart/test_options.dart b/tools/testing/dart/test_options.dart
index 1b023e131feb97811aa4d41881884554a73fdd4d..291ff6b686b2ab1a790ab4b2ec54795cf1efa0c2 100644
--- a/tools/testing/dart/test_options.dart
+++ b/tools/testing/dart/test_options.dart
@@ -10,7 +10,7 @@
List<String> defaultTestSelectors =
const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language',
- 'isolate', 'vm', 'client', 'dartdoc', 'utils'];
+ 'isolate', 'vm', 'client', 'dartdoc', 'utils', 'pub'];
/**
* Specification of a single test option.
@@ -77,9 +77,9 @@ is 'dart file.dart' and you specify special command
dartc: Perform static analysis on Dart code by running dartc.
(only valid with the following runtimes: none)
-
+
frogsh: Compile dart code to JavaScript by running the frog compiler on
- node.js, and run the resulting JavaScript on the same instance of
+ node.js, and run the resulting JavaScript on the same instance of
node.js.
(only valid with the following runtimes: same as frog)''',
['-c', '--compiler'],
@@ -89,26 +89,26 @@ is 'dart file.dart' and you specify special command
'runtime',
'''Where the tests should be run.
vm: Run Dart code on the standalone dart vm.
-
+
d8: Run JavaScript from the command line using v8.
-
- drt: Run Dart or JavaScript in the headless version of Chrome,
+
+ drt: Run Dart or JavaScript in the headless version of Chrome,
DumpRenderTree.
-
+
ff or firefox: Run JavaScript in Firefox.
-
+
chrome: Run JavaScript in Chrome.
-
+
safari: Run JavaScript in Safari.
-
+
ie: Run JavaScript in Internet Explorer.
-
+
opera: Run JavaScript in Opera.
-
- none: No runtime, compile only (for example, used for dartc static analysis
+
+ none: No runtime, compile only (for example, used for dartc static analysis
tests).''',
['-r', '--runtime'],
- ['vm', 'd8', 'drt', 'ff', 'firefox', 'chrome',
+ ['vm', 'd8', 'drt', 'ff', 'firefox', 'chrome',
'safari', 'ie', 'opera', 'none'],
'vm'),
new _TestOptionSpecification(
@@ -386,7 +386,7 @@ is 'dart file.dart' and you specify special command
print("Warning: combination of ${config['compiler']} and " +
"${config['runtime']} is invalid. Skipping this combination.");
}
- if (config['runtime'] == 'ie' &&
+ if (config['runtime'] == 'ie' &&
new Platform().operatingSystem() != 'windows') {
isValid = false;
print("Warning cannot run Internet Explorer on non-Windows operating" +
@@ -474,7 +474,7 @@ is 'dart file.dart' and you specify special command
if (configuration['mode'].contains(',')) {
return _expandHelper('mode', configuration);
}
-
+
// Expand compilers.
if (configuration['compiler'].contains(',')) {
return _expandHelper('compiler', configuration);
@@ -526,7 +526,7 @@ is 'dart file.dart' and you specify special command
return [configuration];
}
- /**
+ /**
* Helper for _expandConfigurations. Creates a new configuration and adds it
* to a list, for use in a case when a particular configuration has multiple
* results (separated by a ',').
@@ -537,7 +537,7 @@ is 'dart file.dart' and you specify special command
*/
List<Map> _expandHelper(String option, Map configuration) {
var result = new List<Map>();
- var configs = configuration[option];
+ var configs = configuration[option];
for (var config in configs.split(',')) {
var newConfiguration = new Map.from(configuration);
newConfiguration[option] = config;

Powered by Google App Engine
This is Rietveld 408576698