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

Side by Side Diff: tools/test.dart

Issue 14645003: Fix csp flags send to browsers. (Closed) Base URL: http://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/http_server.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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/http_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698