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

Unified Diff: lib/src/runner.dart

Issue 1379203002: Refactor groups to pipe them through to the runner. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 2 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
« no previous file with comments | « lib/src/frontend/throws_matcher.dart ('k') | lib/src/runner/browser/browser_manager.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner.dart
diff --git a/lib/src/runner.dart b/lib/src/runner.dart
index 9a5756bc6de3f9cd4727205c90e47c6cb89e1422..e5831e58a8d29d6d44921f6ec68b54ea8f9253df 100644
--- a/lib/src/runner.dart
+++ b/lib/src/runner.dart
@@ -159,8 +159,7 @@ class Runner {
})).map((loadSuite) {
return loadSuite.changeSuite((suite) {
if (_config.pattern == null) return suite;
- return suite.change(tests: suite.tests.where((test) =>
- test.name.contains(_config.pattern)));
+ return suite.filter((test) => test.name.contains(_config.pattern));
});
});
}
« no previous file with comments | « lib/src/frontend/throws_matcher.dart ('k') | lib/src/runner/browser/browser_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698