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: pkg/unittest/lib/html_enhanced_config.dart

Issue 11412086: Make 'where' lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: FilteredIterable/Iterator -> WhereIterable/Iterator. Created 8 years, 1 month 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: pkg/unittest/lib/html_enhanced_config.dart
diff --git a/pkg/unittest/lib/html_enhanced_config.dart b/pkg/unittest/lib/html_enhanced_config.dart
index 446ae61e8f45308e1492f4b8b0029ae50e1f69f8..fd013c9a1c3ea82ee851a833883dc9d52bc79fe3 100644
--- a/pkg/unittest/lib/html_enhanced_config.dart
+++ b/pkg/unittest/lib/html_enhanced_config.dart
@@ -172,8 +172,9 @@ class HtmlEnhancedConfiguration extends Configuration {
previousGroup = test_.currentGroup;
- var testsInGroup = results.where(
- (TestCase t) => t.currentGroup == previousGroup);
+ var testsInGroup = results
+ .where((TestCase t) => t.currentGroup == previousGroup)
+ .toList();
var groupTotalTestCount = testsInGroup.length;
var groupTestPassedCount = testsInGroup.where(
(TestCase t) => t.result == 'pass').length;

Powered by Google App Engine
This is Rietveld 408576698