Index: tests/compiler/dart2js/serialization/test_helper.dart |
diff --git a/tests/compiler/dart2js/serialization/test_helper.dart b/tests/compiler/dart2js/serialization/test_helper.dart |
index 34f40aa76b4c634dfd107d1ff2f0d91868c6bfd5..a6dddf9069ac5b48367379cf54cf08f932aca978 100644 |
--- a/tests/compiler/dart2js/serialization/test_helper.dart |
+++ b/tests/compiler/dart2js/serialization/test_helper.dart |
@@ -436,6 +436,7 @@ void checkSets( |
String messagePrefix, |
bool sameElement(a, b), |
{bool failOnUnfound: true, |
+ bool failOnExtra: true, |
bool verbose: false, |
void onSameElement(a, b)}) { |
List<List> common = <List>[]; |
@@ -458,7 +459,8 @@ void checkSets( |
String message = sb.toString(); |
if (unfound.isNotEmpty || remaining.isNotEmpty) { |
- if (failOnUnfound || remaining.isNotEmpty) { |
+ if ((failOnUnfound && unfound.isNotEmpty) || |
+ (failOnExtra && remaining.isNotEmpty)) { |
Expect.fail(message); |
} else { |
print(message); |