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

Unified Diff: pkg/serialization/test/serialization_test.dart

Issue 14447008: Fix for mirror API breaking change to index libraries by URI, and clean up references in doc commen… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix from review Created 7 years, 8 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/lib/src/serialization_rule.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/serialization/test/serialization_test.dart
diff --git a/pkg/serialization/test/serialization_test.dart b/pkg/serialization/test/serialization_test.dart
index 0729fdd10ec87ad0b6087c3f8bb74f11fdafaf9c..47c8a6ae501c7c50419bf087717a7b3312e04c92 100644
--- a/pkg/serialization/test/serialization_test.dart
+++ b/pkg/serialization/test/serialization_test.dart
@@ -517,6 +517,15 @@ main() {
expect(new Reader(s).asReference(map["person"]) is Reference, isTrue);
});
+ test("MirrorRule with lookup by qualified name rather than named object", () {
+ var s = new Serialization()..addRule(new MirrorRule());
+ var m = reflectClass(Address);
+ var output = s.write(m);
+ var input = s.read(output);
+ expect(input is ClassMirror, isTrue);
+ expect(MirrorSystem.getName(input.simpleName), "Address");
+ });
+
}
/******************************************************************************
@@ -658,7 +667,7 @@ Serialization nodeSerializerNonReflective(Node n) {
/**
* Run a round-trip test on a simple tree of nodes, using a serialization
- * that's returned by the [serializerSetup] function.
+ * that's returned by the [serializerSetUp] function.
*/
runRoundTripTest(Function serializerSetUp) {
Node n1 = new Node("1"), n2 = new Node("2"), n3 = new Node("3");
« no previous file with comments | « pkg/serialization/lib/src/serialization_rule.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698