| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |