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

Unified Diff: pkg/unittest/lib/html_enhanced_config.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « pkg/serialization/test/serialization_test.dart ('k') | pkg/unittest/lib/matcher.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 faad8eb8fae1896459252785fa4225fe22c1b4a6..a59078d7e215672464a1c95ba0649a2edc51372e 100644
--- a/pkg/unittest/lib/html_enhanced_config.dart
+++ b/pkg/unittest/lib/html_enhanced_config.dart
@@ -172,10 +172,11 @@ class HtmlEnhancedConfiguration extends Configuration {
previousGroup = test_.currentGroup;
- var testsInGroup = results.filter(
- (TestCase t) => t.currentGroup == previousGroup);
+ var testsInGroup = results
+ .where((TestCase t) => t.currentGroup == previousGroup)
+ .toList();
var groupTotalTestCount = testsInGroup.length;
- var groupTestPassedCount = testsInGroup.filter(
+ var groupTestPassedCount = testsInGroup.where(
(TestCase t) => t.result == 'pass').length;
groupPassFail = groupTotalTestCount == groupTestPassedCount;
var passFailClass = "unittest-group-status unittest-group-"
« no previous file with comments | « pkg/serialization/test/serialization_test.dart ('k') | pkg/unittest/lib/matcher.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698