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

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

Issue 1127423002: Fix test_suite.dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | no next file » | no next file with comments »
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 /** 5 /**
6 * Classes and methods for enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 info, 1448 info,
1449 isNegative(info), 1449 isNegative(info),
1450 fullHtmlPath); 1450 fullHtmlPath);
1451 enqueueNewTestCase(testCase); 1451 enqueueNewTestCase(testCase);
1452 return; 1452 return;
1453 } 1453 }
1454 1454
1455 /** Helper to create a compilation command for a single input file. */ 1455 /** Helper to create a compilation command for a single input file. */
1456 Command _compileCommand(String inputFile, String outputFile, 1456 Command _compileCommand(String inputFile, String outputFile,
1457 String compiler, String dir, optionsFromFile) { 1457 String compiler, String dir, optionsFromFile) {
1458 assert (compiler == 'dart2js') 1458 assert(compiler == 'dart2js');
1459 List<String> args; 1459 List<String> args;
1460 if (compilerPath.endsWith('.dart')) { 1460 if (compilerPath.endsWith('.dart')) {
1461 // Run the compiler script via the Dart VM. 1461 // Run the compiler script via the Dart VM.
1462 args = [compilerPath]; 1462 args = [compilerPath];
1463 } else { 1463 } else {
1464 args = []; 1464 args = [];
1465 } 1465 }
1466 args.addAll(TestUtils.standardOptions(configuration)); 1466 args.addAll(TestUtils.standardOptions(configuration));
1467 String packageRoot = 1467 String packageRoot =
1468 packageRootArgument(optionsFromFile['packageRoot']); 1468 packageRootArgument(optionsFromFile['packageRoot']);
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
2392 for (var key in PATH_REPLACEMENTS.keys) { 2392 for (var key in PATH_REPLACEMENTS.keys) {
2393 if (path.startsWith(key)) { 2393 if (path.startsWith(key)) {
2394 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); 2394 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]);
2395 break; 2395 break;
2396 } 2396 }
2397 } 2397 }
2398 } 2398 }
2399 return path; 2399 return path;
2400 } 2400 }
2401 } 2401 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698