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

Side by Side Diff: tools/testing/dart/multitest.dart

Issue 239003002: Reduce test.dart memory usage. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « no previous file | tools/testing/dart/test_runner.dart » ('j') | tools/testing/dart/test_runner.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library multitest; 5 library multitest;
6 6
7 import "dart:async"; 7 import "dart:async";
8 import "dart:io"; 8 import "dart:io";
9 import "test_suite.dart"; 9 import "test_suite.dart";
10 import "utils.dart"; 10 import "utils.dart";
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 bool hasRuntimeErrors = outcome.contains('runtime error'); 265 bool hasRuntimeErrors = outcome.contains('runtime error');
266 bool hasCompileError = outcome.contains('compile-time error'); 266 bool hasCompileError = outcome.contains('compile-time error');
267 bool isNegativeIfChecked = outcome.contains('dynamic type error'); 267 bool isNegativeIfChecked = outcome.contains('dynamic type error');
268 bool hasCompileErrorIfChecked = outcome.contains('checked mode compile-tim e error'); 268 bool hasCompileErrorIfChecked = outcome.contains('checked mode compile-tim e error');
269 doTest(multitestFilename, 269 doTest(multitestFilename,
270 hasCompileError, 270 hasCompileError,
271 hasRuntimeErrors, 271 hasRuntimeErrors,
272 isNegativeIfChecked: isNegativeIfChecked, 272 isNegativeIfChecked: isNegativeIfChecked,
273 hasCompileErrorIfChecked: hasCompileErrorIfChecked, 273 hasCompileErrorIfChecked: hasCompileErrorIfChecked,
274 hasStaticWarning: hasStaticWarning, 274 hasStaticWarning: hasStaticWarning,
275 multitestOutcome: outcome,
276 multitestKey: key, 275 multitestKey: key,
277 originTestPath: filePath); 276 originTestPath: filePath);
278 } 277 }
279 278
280 return null; 279 return null;
281 }); 280 });
282 } 281 }
283 282
284 283
285 Path CreateMultitestDirectory(String outputDir, Path suiteDir) { 284 Path CreateMultitestDirectory(String outputDir, Path suiteDir) {
(...skipping 11 matching lines...) Expand all
297 // TestSuite.forDirectory. 296 // TestSuite.forDirectory.
298 split.removeLast(); 297 split.removeLast();
299 } 298 }
300 String path = '${generatedTestDir.path}/${split.last}'; 299 String path = '${generatedTestDir.path}/${split.last}';
301 Directory dir = new Directory(path); 300 Directory dir = new Directory(path);
302 if (!dir.existsSync()) { 301 if (!dir.existsSync()) {
303 dir.createSync(); 302 dir.createSync();
304 } 303 }
305 return new Path(new File(path).absolute.path); 304 return new Path(new File(path).absolute.path);
306 } 305 }
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_runner.dart » ('j') | tools/testing/dart/test_runner.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698