| 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 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2141 "pkg_polymer_e2e_test_good_import_test": "polymer_gi", | 2141 "pkg_polymer_e2e_test_good_import_test": "polymer_gi", |
| 2142 }; | 2142 }; |
| 2143 | 2143 |
| 2144 // Some tests are already in [build_dir]/generated_tests. | 2144 // Some tests are already in [build_dir]/generated_tests. |
| 2145 String GEN_TESTS = 'generated_tests/'; | 2145 String GEN_TESTS = 'generated_tests/'; |
| 2146 if (path.contains(GEN_TESTS)) { | 2146 if (path.contains(GEN_TESTS)) { |
| 2147 int index = path.indexOf(GEN_TESTS) + GEN_TESTS.length; | 2147 int index = path.indexOf(GEN_TESTS) + GEN_TESTS.length; |
| 2148 path = 'multitest/${path.substring(index)}'; | 2148 path = 'multitest/${path.substring(index)}'; |
| 2149 } | 2149 } |
| 2150 path = path.replaceAll('/', '_'); | 2150 path = path.replaceAll('/', '_'); |
| 2151 final int WINDOWS_SHORTEN_PATH_LIMIT = 60; | 2151 final int WINDOWS_SHORTEN_PATH_LIMIT = 58; |
| 2152 if (Platform.operatingSystem == 'windows' && | 2152 if (Platform.operatingSystem == 'windows' && |
| 2153 path.length >= WINDOWS_SHORTEN_PATH_LIMIT) { | 2153 path.length > WINDOWS_SHORTEN_PATH_LIMIT) { |
| 2154 for (var key in PATH_REPLACEMENTS.keys) { | 2154 for (var key in PATH_REPLACEMENTS.keys) { |
| 2155 if (path.startsWith(key)) { | 2155 if (path.startsWith(key)) { |
| 2156 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); | 2156 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); |
| 2157 break; | 2157 break; |
| 2158 } | 2158 } |
| 2159 } | 2159 } |
| 2160 } | 2160 } |
| 2161 return path; | 2161 return path; |
| 2162 } | 2162 } |
| 2163 } | 2163 } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2224 * $pass tests are expected to pass | 2224 * $pass tests are expected to pass |
| 2225 * $failOk tests are expected to fail that we won't fix | 2225 * $failOk tests are expected to fail that we won't fix |
| 2226 * $fail tests are expected to fail that we should fix | 2226 * $fail tests are expected to fail that we should fix |
| 2227 * $crash tests are expected to crash that we should fix | 2227 * $crash tests are expected to crash that we should fix |
| 2228 * $timeout tests are allowed to timeout | 2228 * $timeout tests are allowed to timeout |
| 2229 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2229 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2230 """; | 2230 """; |
| 2231 print(report); | 2231 print(report); |
| 2232 } | 2232 } |
| 2233 } | 2233 } |
| OLD | NEW |