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