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

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

Issue 10627008: Added the ability to filter which tests are run by name, using a --filter (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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
Index: tools/testing/dart/browser_test.dart
===================================================================
--- tools/testing/dart/browser_test.dart (revision 8995)
+++ tools/testing/dart/browser_test.dart (working copy)
@@ -48,7 +48,7 @@
#source('${nativePathToUri(test)}');
""";
-String DartTestWrapper(String dartHome, String library) {
+String DartTestWrapper(String dartHome, String library, String filter) {
dartHome = nativePathToUri(dartHome);
library = nativePathToUri(library);
return """
@@ -63,6 +63,7 @@
config.useHtmlConfiguration();
try {
unittest.ensureInitialized();
+ unittest.setFilter('$filter');
Test.main();
} catch(var e, var trace) {
unittest.reportTestError(

Powered by Google App Engine
This is Rietveld 408576698