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

Unified Diff: tests/compiler/dart2js/serialization/test_helper.dart

Issue 2511403002: Compute [WorldImpact] for main method as entrypoint (Closed)
Patch Set: Updated cf. comments. Created 4 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
« no previous file with comments | « tests/compiler/dart2js/serialization/model_test_helper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e0b8aaab8d6323e314998b1eb89aed67a97208c2..1808b7fd7bd1c776865e2fea49a6c6ba420bb70c 100644
--- a/tests/compiler/dart2js/serialization/test_helper.dart
+++ b/tests/compiler/dart2js/serialization/test_helper.dart
@@ -476,7 +476,17 @@ void checkSets(
void onSameElement(a, b),
void onUnfoundElement(a),
void onExtraElement(b),
+ bool elementFilter(element),
+ elementConverter(element),
String elementToString(key): defaultToString}) {
+ if (elementFilter != null) {
+ set1 = set1.where(elementFilter);
+ set2 = set2.where(elementFilter);
+ }
+ if (elementConverter != null) {
+ set1 = set1.map(elementConverter);
+ set2 = set2.map(elementConverter);
+ }
List<List> common = <List>[];
List unfound = [];
Set remaining = computeSetDifference(set1, set2, common, unfound,
« no previous file with comments | « tests/compiler/dart2js/serialization/model_test_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698