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-" |