| 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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 * or in the build directory, and will return a String representing | 818 * or in the build directory, and will return a String representing |
| 819 * the relative path to either the dart or the build directory. | 819 * the relative path to either the dart or the build directory. |
| 820 * Thus, the returned [String] will be the path component of the URL | 820 * Thus, the returned [String] will be the path component of the URL |
| 821 * corresponding to [file] (the http server serves files relative to the | 821 * corresponding to [file] (the http server serves files relative to the |
| 822 * dart/build directories). | 822 * dart/build directories). |
| 823 */ | 823 */ |
| 824 String _createUrlPathFromFile(Path file) { | 824 String _createUrlPathFromFile(Path file) { |
| 825 file = TestUtils.absolutePath(file); | 825 file = TestUtils.absolutePath(file); |
| 826 var fileString = file.toString(); | 826 var fileString = file.toString(); |
| 827 | 827 |
| 828 var relativeBuildDir = TestUtils.buildDir(configuration); | 828 var relativeBuildDir = new Path(TestUtils.buildDir(configuration)); |
| 829 var buildDir = TestUtils.absolutePath(new Path(relativeBuildDir)); | 829 var buildDir = TestUtils.absolutePath(relativeBuildDir); |
| 830 var dartDir = TestUtils.dartDir(); | 830 var dartDir = TestUtils.dartDir(); |
| 831 | 831 |
| 832 var pathComponent; | 832 var pathComponent; |
| 833 if (fileString.startsWith(buildDir.toString())) { | 833 if (fileString.startsWith(buildDir.toString())) { |
| 834 var fileRelativeToBuildDir = file.relativeTo(buildDir); | 834 var fileRelativeToBuildDir = file.relativeTo(buildDir); |
| 835 pathComponent = "$relativeBuildDir/$fileRelativeToBuildDir"; | 835 pathComponent = "$relativeBuildDir/$fileRelativeToBuildDir"; |
| 836 } else if (fileString.startsWith(dartDir.toString())) { | 836 } else if (fileString.startsWith(dartDir.toString())) { |
| 837 pathComponent = file.relativeTo(dartDir); | 837 pathComponent = file.relativeTo(dartDir); |
| 838 } else { | 838 } else { |
| 839 // Unreachable | 839 // Unreachable |
| (...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1944 * $pass tests are expected to pass | 1944 * $pass tests are expected to pass |
| 1945 * $failOk tests are expected to fail that we won't fix | 1945 * $failOk tests are expected to fail that we won't fix |
| 1946 * $fail tests are expected to fail that we should fix | 1946 * $fail tests are expected to fail that we should fix |
| 1947 * $crash tests are expected to crash that we should fix | 1947 * $crash tests are expected to crash that we should fix |
| 1948 * $timeout tests are allowed to timeout | 1948 * $timeout tests are allowed to timeout |
| 1949 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1949 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 1950 """; | 1950 """; |
| 1951 print(report); | 1951 print(report); |
| 1952 } | 1952 } |
| 1953 } | 1953 } |
| OLD | NEW |