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

Side by Side Diff: tools/test.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/testing/dart/android.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 /** 6 /**
7 * This file is the entrypoint of the dart test suite. This suite is used 7 * This file is the entrypoint of the dart test suite. This suite is used
8 * to test: 8 * to test:
9 * 9 *
10 * 1. the dart vm 10 * 1. the dart vm
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 Map<String, RegExp> selectors = conf['selectors']; 123 Map<String, RegExp> selectors = conf['selectors'];
124 var useContentSecurityPolicy = conf['csp']; 124 var useContentSecurityPolicy = conf['csp'];
125 if (!listTests && runningBrowserTests) { 125 if (!listTests && runningBrowserTests) {
126 // Start global http servers that serve the entire dart repo. 126 // Start global http servers that serve the entire dart repo.
127 // The http server is available on window.location.port, and a second 127 // The http server is available on window.location.port, and a second
128 // server for cross-domain tests can be found by calling 128 // server for cross-domain tests can be found by calling
129 // getCrossOriginPortNumber(). 129 // getCrossOriginPortNumber().
130 var servers = new TestingServers(new Path(TestUtils.buildDir(conf)), 130 var servers = new TestingServers(new Path(TestUtils.buildDir(conf)),
131 useContentSecurityPolicy, 131 useContentSecurityPolicy,
132 conf['runtime']); 132 conf['runtime']);
133 serverFutures.add(servers.startServers('127.0.0.1')); 133 serverFutures.add(servers.startServers(conf['local_ip']));
134 conf['_servers_'] = servers; 134 conf['_servers_'] = servers;
135 } 135 }
136 136
137 // There should not be more than one InternetExplorerDriver instance 137 // There should not be more than one InternetExplorerDriver instance
138 // running at a time. For details, see 138 // running at a time. For details, see
139 // http://code.google.com/p/selenium/wiki/InternetExplorerDriver. 139 // http://code.google.com/p/selenium/wiki/InternetExplorerDriver.
140 if (conf['runtime'].startsWith('ie')) { 140 if (conf['runtime'].startsWith('ie')) {
141 maxBrowserProcesses = 1; 141 maxBrowserProcesses = 1;
142 } 142 }
143 143
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 void main() { 277 void main() {
278 deleteTemporaryDartDirectories().then((_) { 278 deleteTemporaryDartDirectories().then((_) {
279 var optionsParser = new TestOptionsParser(); 279 var optionsParser = new TestOptionsParser();
280 var configurations = optionsParser.parse(new Options().arguments); 280 var configurations = optionsParser.parse(new Options().arguments);
281 if (configurations != null && configurations.length > 0) { 281 if (configurations != null && configurations.length > 0) {
282 testConfigurations(configurations); 282 testConfigurations(configurations);
283 } 283 }
284 }); 284 });
285 } 285 }
286 286
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/android.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698