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

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

Issue 2065413002: Serialize and process patch metadata (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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
Index: tests/compiler/dart2js/serialization/equivalence_test.dart
diff --git a/tests/compiler/dart2js/serialization/equivalence_test.dart b/tests/compiler/dart2js/serialization/equivalence_test.dart
index 91abd27506723c745031cd2fa7a2f4c0ca82238c..e6ae2d456a61bb2f2b7f3c7e8c8007032be25005 100644
--- a/tests/compiler/dart2js/serialization/equivalence_test.dart
+++ b/tests/compiler/dart2js/serialization/equivalence_test.dart
@@ -287,8 +287,18 @@ class ElementPropertyEquivalence extends BaseElementVisitor<dynamic, Element> {
element1.isClassMember, element2.isClassMember);
check(element1, element2, 'isInstanceMember',
element1.isInstanceMember, element2.isInstanceMember);
+ List<MetadataAnnotation> metadata1 = <MetadataAnnotation>[];
+ metadata1.addAll(element1.metadata);
+ if (element1.isPatched) {
+ metadata1.addAll(element1.implementation.metadata);
+ }
+ List<MetadataAnnotation> metadata2 = <MetadataAnnotation>[];
+ metadata2.addAll(element2.metadata);
+ if (element2.isPatched) {
+ metadata2.addAll(element2.implementation.metadata);
+ }
checkListEquivalence(element1, element2, 'metadata',
- element1.metadata, element2.metadata, checkMetadata);
+ metadata1, metadata2, checkMetadata);
}
@override
@@ -394,7 +404,7 @@ class ElementPropertyEquivalence extends BaseElementVisitor<dynamic, Element> {
throw message;
}
}
- currentCheck = new Check(currentCheck, element1, element1,
+ currentCheck = new Check(currentCheck, element1, element2,
'member:$name', member1, member2);
visit(member1, member2);
currentCheck = currentCheck.parent;
« no previous file with comments | « pkg/compiler/lib/src/serialization/element_serialization.dart ('k') | tests/compiler/dart2js/serialization/model_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698