| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 if (name == '') { | 193 if (name == '') { |
| 194 name = executablePath; | 194 name = executablePath; |
| 195 } | 195 } |
| 196 | 196 |
| 197 TestUtils.ensureExists(name, configuration); | 197 TestUtils.ensureExists(name, configuration); |
| 198 return name; | 198 return name; |
| 199 } | 199 } |
| 200 | 200 |
| 201 String get d8FileName { | 201 String get d8FileName { |
| 202 var suffix = getExecutableSuffix('d8'); | 202 var suffix = getExecutableSuffix('d8'); |
| 203 var d8Dir = '${TestUtils.dartDir()}/third_party/d8'; | 203 var d8Dir = TestUtils.dartDir().append('third_party/d8'); |
| 204 var d8 = '$d8Dir/${Platform.operatingSystem}/d8$suffix'; | 204 var d8Path = d8Dir.append('${Platform.operatingSystem}/d8$suffix'); |
| 205 var d8 = d8Path.toNativePath(); |
| 205 TestUtils.ensureExists(d8, configuration); | 206 TestUtils.ensureExists(d8, configuration); |
| 206 return d8; | 207 return d8; |
| 207 } | 208 } |
| 208 | 209 |
| 209 String get jsShellFileName { | 210 String get jsShellFileName { |
| 210 var executableSuffix = getExecutableSuffix('jsshell'); | 211 var executableSuffix = getExecutableSuffix('jsshell'); |
| 211 var executable = 'jsshell$executableSuffix'; | 212 var executable = 'jsshell$executableSuffix'; |
| 212 var jsshellDir = '${TestUtils.dartDir()}/tools/testing/bin'; | 213 var jsshellDir = '${TestUtils.dartDir()}/tools/testing/bin'; |
| 213 return '$jsshellDir/$executable'; | 214 return '$jsshellDir/$executable'; |
| 214 } | 215 } |
| (...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1923 * $pass tests are expected to pass | 1924 * $pass tests are expected to pass |
| 1924 * $failOk tests are expected to fail that we won't fix | 1925 * $failOk tests are expected to fail that we won't fix |
| 1925 * $fail tests are expected to fail that we should fix | 1926 * $fail tests are expected to fail that we should fix |
| 1926 * $crash tests are expected to crash that we should fix | 1927 * $crash tests are expected to crash that we should fix |
| 1927 * $timeout tests are allowed to timeout | 1928 * $timeout tests are allowed to timeout |
| 1928 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1929 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 1929 """; | 1930 """; |
| 1930 print(report); | 1931 print(report); |
| 1931 } | 1932 } |
| 1932 } | 1933 } |
| OLD | NEW |