| 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 new CompilerConfiguration(configuration).hasCompiler) { | 285 new CompilerConfiguration(configuration).hasCompiler) { |
| 286 summaryReport.addCompileErrorSkipTest(); | 286 summaryReport.addCompileErrorSkipTest(); |
| 287 return; | 287 return; |
| 288 } else { | 288 } else { |
| 289 summaryReport.add(testCase); | 289 summaryReport.add(testCase); |
| 290 } | 290 } |
| 291 } | 291 } |
| 292 | 292 |
| 293 // Handle skipped tests | 293 // Handle skipped tests |
| 294 if (expectations.contains(Expectation.SKIP) || | 294 if (expectations.contains(Expectation.SKIP) || |
| 295 expectations.contains(Expectation.SKIP_BY_DESIGN)) { | 295 expectations.contains(Expectation.SKIP_BY_DESIGN) || |
| 296 expectations.contains(Expectation.SKIP_SLOW)) { |
| 296 return; | 297 return; |
| 297 } | 298 } |
| 298 | 299 |
| 299 doTest(testCase); | 300 doTest(testCase); |
| 300 } | 301 } |
| 301 | 302 |
| 302 String createGeneratedTestDirectoryHelper( | 303 String createGeneratedTestDirectoryHelper( |
| 303 String name, String dirname, Path testPath, String optionsName) { | 304 String name, String dirname, Path testPath, String optionsName) { |
| 304 Path relative = testPath.relativeTo(TestUtils.dartDir); | 305 Path relative = testPath.relativeTo(TestUtils.dartDir); |
| 305 relative = relative.directoryPath.append(relative.filenameWithoutExtension); | 306 relative = relative.directoryPath.append(relative.filenameWithoutExtension); |
| (...skipping 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2388 for (var key in PATH_REPLACEMENTS.keys) { | 2389 for (var key in PATH_REPLACEMENTS.keys) { |
| 2389 if (path.startsWith(key)) { | 2390 if (path.startsWith(key)) { |
| 2390 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); | 2391 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); |
| 2391 break; | 2392 break; |
| 2392 } | 2393 } |
| 2393 } | 2394 } |
| 2394 } | 2395 } |
| 2395 return path; | 2396 return path; |
| 2396 } | 2397 } |
| 2397 } | 2398 } |
| OLD | NEW |