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

Side by Side Diff: dart/tools/test.dart

Issue 13866010: Correctly compile unresolved for-in loops. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Additional problems found during testing. Created 7 years, 8 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // TODO(amouravski): move these to tests/ once they no longer rely on weird 70 // TODO(amouravski): move these to tests/ once they no longer rely on weird
71 // dependencies. 71 // dependencies.
72 new Path('sdk/lib/_internal/dartdoc'), 72 new Path('sdk/lib/_internal/dartdoc'),
73 new Path('tools/dom/docs'), 73 new Path('tools/dom/docs'),
74 ]; 74 ];
75 75
76 void testConfigurations(List<Map> configurations) { 76 void testConfigurations(List<Map> configurations) {
77 var startTime = new DateTime.now(); 77 var startTime = new DateTime.now();
78 // Extract global options from first configuration. 78 // Extract global options from first configuration.
79 var firstConf = configurations[0]; 79 var firstConf = configurations[0];
80 Map<String, RegExp> selectors = firstConf['selectors'];
81 var maxProcesses = firstConf['tasks']; 80 var maxProcesses = firstConf['tasks'];
82 var progressIndicator = firstConf['progress']; 81 var progressIndicator = firstConf['progress'];
83 var failureSummary = firstConf['failure-summary']; 82 var failureSummary = firstConf['failure-summary'];
84 BuildbotProgressIndicator.stepName = firstConf['step_name']; 83 BuildbotProgressIndicator.stepName = firstConf['step_name'];
85 var verbose = firstConf['verbose']; 84 var verbose = firstConf['verbose'];
86 var printTiming = firstConf['time']; 85 var printTiming = firstConf['time'];
87 var listTests = firstConf['list']; 86 var listTests = firstConf['list'];
88 var useContentSecurityPolicy = firstConf['csp'];
89 87
90 if (!firstConf['append_logs']) { 88 if (!firstConf['append_logs']) {
91 var file = new File(TestUtils.flakyFileName()); 89 var file = new File(TestUtils.flakyFileName());
92 if (file.existsSync()) { 90 if (file.existsSync()) {
93 file.deleteSync(); 91 file.deleteSync();
94 } 92 }
95 } 93 }
96 94
97 DebugLogger.init(firstConf['write_debug_log'] ? 95 DebugLogger.init(firstConf['write_debug_log'] ?
98 TestUtils.debugLogfile() : null, append: firstConf['append_logs']); 96 TestUtils.debugLogfile() : null, append: firstConf['append_logs']);
(...skipping 14 matching lines...) Expand all
113 } 111 }
114 112
115 var runningBrowserTests = configurations.any((config) { 113 var runningBrowserTests = configurations.any((config) {
116 return TestUtils.isBrowserRuntime(config['runtime']); 114 return TestUtils.isBrowserRuntime(config['runtime']);
117 }); 115 });
118 116
119 List<Future> serverFutures = []; 117 List<Future> serverFutures = [];
120 var testSuites = new List<TestSuite>(); 118 var testSuites = new List<TestSuite>();
121 var maxBrowserProcesses = maxProcesses; 119 var maxBrowserProcesses = maxProcesses;
122 for (var conf in configurations) { 120 for (var conf in configurations) {
121 Map<String, RegExp> selectors = conf['selectors'];
122 var useContentSecurityPolicy = conf['csp'];
123 if (!listTests && runningBrowserTests) { 123 if (!listTests && runningBrowserTests) {
124 // Start global http servers that serve the entire dart repo. 124 // Start global http servers that serve the entire dart repo.
125 // The http server is available on window.location.port, and a second 125 // The http server is available on window.location.port, and a second
126 // server for cross-domain tests can be found by calling 126 // server for cross-domain tests can be found by calling
127 // getCrossOriginPortNumber(). 127 // getCrossOriginPortNumber().
128 var servers = new TestingServers(new Path(TestUtils.buildDir(conf)), 128 var servers = new TestingServers(new Path(TestUtils.buildDir(conf)),
129 useContentSecurityPolicy); 129 useContentSecurityPolicy);
130 serverFutures.add(servers.startServers('127.0.0.1')); 130 serverFutures.add(servers.startServers('127.0.0.1'));
131 conf['_servers_'] = servers; 131 conf['_servers_'] = servers;
132 } 132 }
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 232 }
233 233
234 void main() { 234 void main() {
235 var optionsParser = new TestOptionsParser(); 235 var optionsParser = new TestOptionsParser();
236 var configurations = optionsParser.parse(new Options().arguments); 236 var configurations = optionsParser.parse(new Options().arguments);
237 if (configurations != null && configurations.length > 0) { 237 if (configurations != null && configurations.length > 0) {
238 testConfigurations(configurations); 238 testConfigurations(configurations);
239 } 239 }
240 } 240 }
241 241
OLDNEW
« dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('K') | « dart/tests/lib/lib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698