| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 var maxBrowserProcesses = maxProcesses; | 121 var maxBrowserProcesses = maxProcesses; |
| 122 for (var conf in configurations) { | 122 for (var conf in configurations) { |
| 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 serverFutures.add(servers.startServers('127.0.0.1')); | 133 serverFutures.add(servers.startServers('127.0.0.1')); |
| 133 conf['_servers_'] = servers; | 134 conf['_servers_'] = servers; |
| 134 } | 135 } |
| 135 | 136 |
| 136 // There should not be more than one InternetExplorerDriver instance | 137 // There should not be more than one InternetExplorerDriver instance |
| 137 // running at a time. For details, see | 138 // running at a time. For details, see |
| 138 // http://code.google.com/p/selenium/wiki/InternetExplorerDriver. | 139 // http://code.google.com/p/selenium/wiki/InternetExplorerDriver. |
| 139 if (conf['runtime'].startsWith('ie')) { | 140 if (conf['runtime'].startsWith('ie')) { |
| 140 maxBrowserProcesses = 1; | 141 maxBrowserProcesses = 1; |
| 141 } | 142 } |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 void main() { | 274 void main() { |
| 274 deleteTemporaryDartDirectories().then((_) { | 275 deleteTemporaryDartDirectories().then((_) { |
| 275 var optionsParser = new TestOptionsParser(); | 276 var optionsParser = new TestOptionsParser(); |
| 276 var configurations = optionsParser.parse(new Options().arguments); | 277 var configurations = optionsParser.parse(new Options().arguments); |
| 277 if (configurations != null && configurations.length > 0) { | 278 if (configurations != null && configurations.length > 0) { |
| 278 testConfigurations(configurations); | 279 testConfigurations(configurations); |
| 279 } | 280 } |
| 280 }); | 281 }); |
| 281 } | 282 } |
| 282 | 283 |
| OLD | NEW |