| OLD | NEW |
| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 if (!listTests && runningBrowserTests) { | 140 if (!listTests && runningBrowserTests) { |
| 141 // Start global http servers that serve the entire dart repo. | 141 // Start global http servers that serve the entire dart repo. |
| 142 // The http server is available on window.location.port, and a second | 142 // The http server is available on window.location.port, and a second |
| 143 // server for cross-domain tests can be found by calling | 143 // server for cross-domain tests can be found by calling |
| 144 // getCrossOriginPortNumber(). | 144 // getCrossOriginPortNumber(). |
| 145 var servers = new TestingServers(new Path(TestUtils.buildDir(conf)), | 145 var servers = new TestingServers(new Path(TestUtils.buildDir(conf)), |
| 146 useContentSecurityPolicy, | 146 useContentSecurityPolicy, |
| 147 conf['runtime']); | 147 conf['runtime']); |
| 148 serverFutures.add(servers.startServers(conf['local_ip'])); | 148 serverFutures.add(servers.startServers(conf['local_ip'])); |
| 149 conf['_servers_'] = servers; | 149 conf['_servers_'] = servers; |
| 150 if (verbose) { |
| 151 serverFutures.last.then((_) { |
| 152 var commandline = servers.httpServerCommandline(); |
| 153 print('Started HttpServers: $commandline'); |
| 154 }); |
| 155 } |
| 150 } | 156 } |
| 151 | 157 |
| 152 // There should not be more than one InternetExplorerDriver instance | 158 // There should not be more than one InternetExplorerDriver instance |
| 153 // running at a time. For details, see | 159 // running at a time. For details, see |
| 154 // http://code.google.com/p/selenium/wiki/InternetExplorerDriver. | 160 // http://code.google.com/p/selenium/wiki/InternetExplorerDriver. |
| 155 if (conf['runtime'].startsWith('ie')) { | 161 if (conf['runtime'].startsWith('ie')) { |
| 156 maxBrowserProcesses = 1; | 162 maxBrowserProcesses = 1; |
| 157 } else if (conf['runtime'].startsWith('safari') && | 163 } else if (conf['runtime'].startsWith('safari') && |
| 158 conf['use_browser_controller']) { | 164 conf['use_browser_controller']) { |
| 159 // Safari does not allow us to run from a fresh profile, so we can only | 165 // Safari does not allow us to run from a fresh profile, so we can only |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 void main() { | 300 void main() { |
| 295 deleteTemporaryDartDirectories().then((_) { | 301 deleteTemporaryDartDirectories().then((_) { |
| 296 var optionsParser = new TestOptionsParser(); | 302 var optionsParser = new TestOptionsParser(); |
| 297 var configurations = optionsParser.parse(new Options().arguments); | 303 var configurations = optionsParser.parse(new Options().arguments); |
| 298 if (configurations != null && configurations.length > 0) { | 304 if (configurations != null && configurations.length > 0) { |
| 299 testConfigurations(configurations); | 305 testConfigurations(configurations); |
| 300 } | 306 } |
| 301 }); | 307 }); |
| 302 } | 308 } |
| 303 | 309 |
| OLD | NEW |