| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 return; | 295 return; |
| 296 } | 296 } |
| 297 // Test if the selector includes this test. | 297 // Test if the selector includes this test. |
| 298 RegExp pattern = configuration['selectors'][suiteName]; | 298 RegExp pattern = configuration['selectors'][suiteName]; |
| 299 if (!pattern.hasMatch(testCase.displayName)) { | 299 if (!pattern.hasMatch(testCase.displayName)) { |
| 300 return; | 300 return; |
| 301 } | 301 } |
| 302 | 302 |
| 303 if (configuration['hot_reload'] || configuration['hot_reload_rollback']) { | 303 if (configuration['hot_reload'] || configuration['hot_reload_rollback']) { |
| 304 // Handle reload special cases. | 304 // Handle reload special cases. |
| 305 if (expectations.contains(Expectation.COMPILETIME_ERROR)) { | 305 if (expectations.contains(Expectation.COMPILETIME_ERROR) || |
| 306 testCase.hasCompileError || testCase.expectCompileError) { |
| 306 // Running a test that expects a compilation error with hot reloading | 307 // Running a test that expects a compilation error with hot reloading |
| 307 // is redundant with a regular run of the test. | 308 // is redundant with a regular run of the test. |
| 308 return; | 309 return; |
| 309 } | 310 } |
| 310 } | 311 } |
| 311 | 312 |
| 312 // Update Summary report | 313 // Update Summary report |
| 313 if (configuration['report']) { | 314 if (configuration['report']) { |
| 314 if (testCase.expectCompileError && | 315 if (testCase.expectCompileError && |
| 315 TestUtils.isBrowserRuntime(configuration['runtime']) && | 316 TestUtils.isBrowserRuntime(configuration['runtime']) && |
| (...skipping 2169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2485 } | 2486 } |
| 2486 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { | 2487 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { |
| 2487 ++shortNameCounter; | 2488 ++shortNameCounter; |
| 2488 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); | 2489 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); |
| 2489 path = "short${shortNameCounter}_$pathEnd"; | 2490 path = "short${shortNameCounter}_$pathEnd"; |
| 2490 } | 2491 } |
| 2491 } | 2492 } |
| 2492 return path; | 2493 return path; |
| 2493 } | 2494 } |
| 2494 } | 2495 } |
| OLD | NEW |