Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: tools/testing/dart/test_suite.dart

Issue 1212513002: sdk files reorganization to make dart2js a proper package (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: renamed Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698