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 1879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1890 var options = super.additionalOptions(filePath); | 1890 var options = super.additionalOptions(filePath); |
1891 // NOTE: This flag has been deprecated. | 1891 // NOTE: This flag has been deprecated. |
1892 options.add('--show-sdk-warnings'); | 1892 options.add('--show-sdk-warnings'); |
1893 return options; | 1893 return options; |
1894 } | 1894 } |
1895 | 1895 |
1896 bool isTestFile(String filename) { | 1896 bool isTestFile(String filename) { |
1897 // NOTE: We exclude tests and patch files for now. | 1897 // NOTE: We exclude tests and patch files for now. |
1898 return filename.endsWith(".dart") && | 1898 return filename.endsWith(".dart") && |
1899 !filename.endsWith("_test.dart") && | 1899 !filename.endsWith("_test.dart") && |
1900 !filename.contains("_internal/compiler/js_lib"); | 1900 !filename.contains("_internal/js_runtime/lib"); |
1901 } | 1901 } |
1902 | 1902 |
1903 bool get listRecursively => true; | 1903 bool get listRecursively => true; |
1904 } | 1904 } |
1905 | 1905 |
1906 | 1906 |
1907 class PkgBuildTestSuite extends TestSuite { | 1907 class PkgBuildTestSuite extends TestSuite { |
1908 final String statusFilePath; | 1908 final String statusFilePath; |
1909 | 1909 |
1910 PkgBuildTestSuite(Map configuration, String suiteName, this.statusFilePath) | 1910 PkgBuildTestSuite(Map configuration, String suiteName, this.statusFilePath) |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2392 for (var key in PATH_REPLACEMENTS.keys) { | 2392 for (var key in PATH_REPLACEMENTS.keys) { |
2393 if (path.startsWith(key)) { | 2393 if (path.startsWith(key)) { |
2394 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); | 2394 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); |
2395 break; | 2395 break; |
2396 } | 2396 } |
2397 } | 2397 } |
2398 } | 2398 } |
2399 return path; | 2399 return path; |
2400 } | 2400 } |
2401 } | 2401 } |
OLD | NEW |