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

Unified Diff: tests/lib/mirrors/relation_subclass_test.dart

Issue 172353003: Implement Mirror.isSubclassOf. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
« sdk/lib/_internal/lib/js_mirrors.dart ('K') | « tests/lib/lib.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/relation_subclass_test.dart
diff --git a/tests/lib/mirrors/relation_subclass_test.dart b/tests/lib/mirrors/relation_subclass_test.dart
index 2e8bbc24793d60b9e35945b73fc041ec7da894b7..f3cd717757f6f3d36bce582bdc981daa6b1d995f 100644
--- a/tests/lib/mirrors/relation_subclass_test.dart
+++ b/tests/lib/mirrors/relation_subclass_test.dart
@@ -57,12 +57,12 @@ test(MirrorSystem mirrors) {
Expect.isFalse(Obj.isSubclassOf(Func));
// Function typedef.
- var NumPred = thisLibrary.declarations[#NumberPredicate];
- var IntPred = thisLibrary.declarations[#IntegerPredicate];
- var DubPred = thisLibrary.declarations[#DoublePredicate];
- var NumGen = thisLibrary.declarations[#NumberGenerator];
- var IntGen = thisLibrary.declarations[#IntegerGenerator];
- var DubGen = thisLibrary.declarations[#DoubleGenerator];
+ var NumPred = reflectType(NumberPredicate);
Johnni Winther 2014/02/26 15:44:59 Why this change?
karlklose 2014/02/27 08:41:02 We do not preserve the typedef declarations in dar
+ var IntPred = reflectType(IntegerPredicate);
+ var DubPred = reflectType(DoublePredicate);
+ var NumGen = reflectType(NumberGenerator);
+ var IntGen = reflectType(IntegerGenerator);
+ var DubGen = reflectType(DoubleGenerator);
isArgumentOrTypeError(e) => e is ArgumentError || e is TypeError;
Expect.throws(() => Func.isSubclassOf(NumPred), isArgumentOrTypeError);
« sdk/lib/_internal/lib/js_mirrors.dart ('K') | « tests/lib/lib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698