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

Unified Diff: tools/testing/dart/test_suite.dart

Issue 10229002: test rename overhaul: step 10 - crypto tests, and add back other tests commited (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« tools/test-runtime.dart ('K') | « tools/test-runtime.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_suite.dart
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index 1ff6e76a2e3f6eea54e745c1535c5f1129edbaf3..0b0ac483f115b7131398805fa24768f9b275a7bf 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -212,13 +212,15 @@ class StandardTestSuite implements TestSuite {
final String dartDir;
Function globalTemporaryDirectory;
Predicate<String> isTestFilePredicate;
+ bool _listRecursive;
Emily Fortuna 2012/04/28 00:06:14 Where is this used? I couldn't find it in the CL.
Siggi Cherem (dart-lang) 2012/04/28 00:08:55 the crypto tests are under lib/crypto, but the tes
StandardTestSuite(Map this.configuration,
String this.suiteName,
String this.directoryPath,
List<String> this.statusFilePaths,
- [Predicate<String> this.isTestFilePredicate])
- : dartDir = TestUtils.dartDir();
+ [Predicate<String> this.isTestFilePredicate,
+ bool recursive = false])
+ : dartDir = TestUtils.dartDir(), _listRecursive = recursive;
/**
* Creates a test suite whose file organization matches an expected structure.
@@ -253,7 +255,8 @@ class StandardTestSuite implements TestSuite {
return new StandardTestSuite(configuration,
name, directory, ['$directory/$name.status'],
- (filename) => filename.endsWith('_test.dart'));
+ (filename) => filename.endsWith('_test.dart'),
+ recursive: true);
}
/**
@@ -267,7 +270,7 @@ class StandardTestSuite implements TestSuite {
return filename.endsWith("Test.dart");
}
- bool listRecursively() => false;
+ bool listRecursively() => _listRecursive;
String shellPath() => TestUtils.dartShellFileName(configuration);
« tools/test-runtime.dart ('K') | « tools/test-runtime.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698