Chromium Code Reviews| Index: tools/test.dart |
| diff --git a/tools/test.dart b/tools/test.dart |
| index 3a2794d83e9dfc1a208a96271de59d070e4c4fc1..386ff266f7405e956ebb8cf4b7f1828c44ae9b17 100755 |
| --- a/tools/test.dart |
| +++ b/tools/test.dart |
| @@ -83,6 +83,7 @@ main() { |
| var verbose = firstConf['verbose']; |
| var printTiming = firstConf['time']; |
| var listTests = firstConf['list']; |
| + var useContentSecurityPolicy = firstConf['csp']; |
| if (!firstConf['append_logs']) { |
| var file = new File(TestUtils.flakyFileName()); |
| @@ -118,10 +119,11 @@ main() { |
| for (var conf in configurations) { |
| if (!listTests && runningBrowserTests) { |
| // Start global http servers that serve the entire dart repo. |
| - // The http server is available on window.location.port, and a second |
| + // The http server is available on window.location.port, and a second |
| // server for cross-domain tests can be found by calling |
| // getCrossOriginPortNumber(). |
| - var servers = new TestingServers(new Path(TestUtils.buildDir(conf))); |
| + var servers = new TestingServers(new Path(TestUtils.buildDir(conf)), |
| + useContentSecurityPolicy); |
|
kustermann
2013/02/28 08:34:50
Since the second parameter is not optional, you ne
ricow1
2013/02/28 08:36:07
You also need to do this in tools/test-runtime.dar
kasperl
2013/02/28 08:54:49
I'll do that, but I *strongly* object to this. I d
|
| servers.startServers('127.0.0.1'); |
| conf['_servers_'] = servers; |
| } |