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

Side by Side Diff: tools/test.dart

Issue 29773006: Changes to run tests on Dartium content shell on Android. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 Map<String, RegExp> selectors = conf['selectors']; 136 Map<String, RegExp> selectors = conf['selectors'];
137 var useContentSecurityPolicy = conf['csp']; 137 var useContentSecurityPolicy = conf['csp'];
138 if (!listTests && runningBrowserTests) { 138 if (!listTests && runningBrowserTests) {
139 // Start global http servers that serve the entire dart repo. 139 // Start global http servers that serve the entire dart repo.
140 // The http server is available on window.location.port, and a second 140 // The http server is available on window.location.port, and a second
141 // server for cross-domain tests can be found by calling 141 // server for cross-domain tests can be found by calling
142 // getCrossOriginPortNumber(). 142 // getCrossOriginPortNumber().
143 var servers = new TestingServers(new Path(TestUtils.buildDir(conf)), 143 var servers = new TestingServers(new Path(TestUtils.buildDir(conf)),
144 useContentSecurityPolicy, 144 useContentSecurityPolicy,
145 conf['runtime']); 145 conf['runtime']);
146 serverFutures.add(servers.startServers(conf['local_ip'])); 146 serverFutures.add(servers.startServers(conf['local_ip'],
147 port: int.parse(conf['test_server_port']),
148 crossOriginPort: int.parse(conf['test_server_cross_origin_port'])));
147 conf['_servers_'] = servers; 149 conf['_servers_'] = servers;
148 if (verbose) { 150 if (verbose) {
149 serverFutures.last.then((_) { 151 serverFutures.last.then((_) {
150 var commandline = servers.httpServerCommandline(); 152 var commandline = servers.httpServerCommandline();
151 print('Started HttpServers: $commandline'); 153 print('Started HttpServers: $commandline');
152 }); 154 });
153 } 155 }
154 } 156 }
155 157
156 if (conf['runtime'].startsWith('ie')) { 158 if (conf['runtime'].startsWith('ie')) {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 void main() { 283 void main() {
282 deleteTemporaryDartDirectories().then((_) { 284 deleteTemporaryDartDirectories().then((_) {
283 var optionsParser = new TestOptionsParser(); 285 var optionsParser = new TestOptionsParser();
284 var configurations = optionsParser.parse(new Options().arguments); 286 var configurations = optionsParser.parse(new Options().arguments);
285 if (configurations != null && configurations.length > 0) { 287 if (configurations != null && configurations.length > 0) {
286 testConfigurations(configurations); 288 testConfigurations(configurations);
287 } 289 }
288 }); 290 });
289 } 291 }
290 292
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/android.dart » ('j') | tools/testing/dart/browser_controller.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698