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

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

Issue 24005002: Make TypedefMirror a direct descendant of TypeMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 2 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/lib/mirrors/typedef_test.dart
diff --git a/tests/lib/mirrors/typedef_test.dart b/tests/lib/mirrors/typedef_test.dart
index 3a5919a5e7910e911182858b149011e4e139bb26..11b9e713e4e3da59269fcf59a44c28c819ec82e4 100644
--- a/tests/lib/mirrors/typedef_test.dart
+++ b/tests/lib/mirrors/typedef_test.dart
@@ -64,7 +64,7 @@ FunctionTypeMirror on '${ft('()', 'dynamic')}'
TypeMirror on 'dynamic'
[]
""",
- check(reflectClass(Func)));
+ check(reflectType(Func)));
Expect.stringEquals(
"""
TypedefMirror on 'Void'
@@ -72,7 +72,7 @@ FunctionTypeMirror on '${ft('()', 'void')}'
TypeMirror on 'void'
[]
""",
- check(reflectClass(Void)));
+ check(reflectType(Void)));
Expect.stringEquals(
"""
TypedefMirror on 'Foo'
@@ -82,7 +82,7 @@ ClassMirror on 'String'
Symbol(\"$x\")
ClassMirror on 'int'
""",
- check(reflectClass(Foo)));
+ check(reflectType(Foo)));
String type = ft('(dart.core.int, dart.core.num)', 'dart.core.String');
Expect.stringEquals(
"""
@@ -95,7 +95,7 @@ ClassMirror on 'int'
Symbol(\"$y\")
ClassMirror on 'num'
""",
- check(reflectClass(Foo2)));
+ check(reflectType(Foo2)));
type = ft('(dart.core.int, [dart.core.num])', 'dart.core.String');
Expect.stringEquals(
"""
@@ -108,7 +108,7 @@ ClassMirror on 'int'
Symbol(\"$y\")
ClassMirror on 'num'
""",
- check(reflectClass(Bar)));
+ check(reflectType(Bar)));
type = ft('(dart.core.int, [dart.core.num, dart.core.num])',
'dart.core.String');
Expect.stringEquals(
@@ -124,7 +124,7 @@ ClassMirror on 'num'
Symbol(\"$z\")
ClassMirror on 'num'
""",
- check(reflectClass(Bar2)));
+ check(reflectType(Bar2)));
type = ft('(dart.core.int, {y: dart.core.num})', 'dart.core.String');
Expect.stringEquals(
"""
@@ -137,7 +137,7 @@ ClassMirror on 'int'
Symbol(\"y\")
ClassMirror on 'num'
""",
- check(reflectClass(Baz)));
+ check(reflectType(Baz)));
type = ft('(dart.core.int, {y: dart.core.num, z: dart.core.num})',
'dart.core.String');
Expect.stringEquals(
@@ -153,5 +153,5 @@ ClassMirror on 'num'
Symbol(\"z\")
ClassMirror on 'num'
""",
- check(reflectClass(Baz2)));
+ check(reflectType(Baz2)));
}

Powered by Google App Engine
This is Rietveld 408576698