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

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

Issue 15567002: Added support for running dart2js tests on android devices (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
« no previous file with comments | « tools/testing/dart/http_server.dart ('k') | tools/testing/dart/test_runner.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 a31b093937eccdd155f1ae495e5b4b54a8a97ea7..78e29cfc7ee692e9f68bfb3775850a13f2929b71 100644
--- a/tools/testing/dart/test_options.dart
+++ b/tools/testing/dart/test_options.dart
@@ -74,7 +74,8 @@ is 'dart file.dart' and you specify special command
dart2js: Compile dart code to JavaScript by running dart2js.
(only valid with the following runtimes: d8, drt, chrome,
- safari, ie9, ie10, firefox, opera, none (compile only)),
+ safari, ie9, ie10, firefox, opera, chromeOnAndroid,
+ none (compile only)),
dartc: Perform static analysis on Dart code by running dartc.
(only valid with the following runtimes: none),
@@ -98,14 +99,14 @@ is 'dart file.dart' and you specify special command
dartium: Run Dart or JavaScript in Dartium.
- [ff | chrome | safari | ie9 | ie10 | opera]: Run JavaScript in the specified
- browser.
+ [ff | chrome | safari | ie9 | ie10 | opera | chromeOnAndroid]:
+ Run JavaScript in the specified browser.
none: No runtime, compile only (for example, used for dartc static analysis
tests).''',
['-r', '--runtime'],
['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox',
- 'chrome', 'safari', 'ie9', 'ie10', 'opera', 'none'],
+ 'chrome', 'safari', 'ie9', 'ie10', 'opera', 'chromeOnAndroid', 'none'],
'vm'),
new _TestOptionSpecification(
'arch',
@@ -309,7 +310,14 @@ Note: currently only implemented for dart2js.''',
[],
false,
'bool'
- ),];
+ ),
+ new _TestOptionSpecification(
+ 'local_ip',
+ 'IP address the http servers should listen on.'
+ 'This address is also used for browsers to connect.',
+ ['--local_ip'],
+ [],
+ '127.0.0.1'),];
}
@@ -447,7 +455,7 @@ Note: currently only implemented for dart2js.''',
// with dart2js, we should remove it from here.
validRuntimes = const ['d8', 'jsshell', 'drt', 'none', 'dartium',
'ff', 'chrome', 'safari', 'ie9', 'ie10',
- 'opera'];
+ 'opera', 'chromeOnAndroid'];
break;
case 'dartc':
case 'dartanalyzer':
@@ -615,7 +623,6 @@ Note: currently only implemented for dart2js.''',
if (configuration['checked']) {
timeout *= 2;
}
-
break;
default:
if (configuration['mode'] == 'debug') {
« no previous file with comments | « tools/testing/dart/http_server.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698