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

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

Issue 64793003: Update mirror tests for removed API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 7 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/lib/lib.status ('k') | tests/lib/mirrors/constructor_kinds_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/basic_types_in_dart_core_test.dart
diff --git a/tests/lib/mirrors/basic_types_in_dart_core_test.dart b/tests/lib/mirrors/basic_types_in_dart_core_test.dart
index 9e15b849387b88a71435996240346745ea4409aa..4ef60f8928d72c07222e14fa9b887dc5c8ca2758 100644
--- a/tests/lib/mirrors/basic_types_in_dart_core_test.dart
+++ b/tests/lib/mirrors/basic_types_in_dart_core_test.dart
@@ -11,41 +11,41 @@ main() {
LibraryMirror dartcore = currentMirrorSystem().findLibrary(#dart.core);
ClassMirror cm;
- cm = dartcore.classes[#int];
+ cm = dartcore.declarations[#int];
Expect.equals(reflectClass(int), cm);
Expect.equals(#int, cm.simpleName);
- cm = dartcore.classes[#double];
+ cm = dartcore.declarations[#double];
Expect.equals(reflectClass(double), cm);
Expect.equals(#double, cm.simpleName);
- cm = dartcore.classes[#num];
+ cm = dartcore.declarations[#num];
Expect.equals(reflectClass(num), cm);
Expect.equals(#num, cm.simpleName);
- cm = dartcore.classes[#bool];
+ cm = dartcore.declarations[#bool];
Expect.equals(reflectClass(bool), cm);
Expect.equals(#bool, cm.simpleName);
- cm = dartcore.classes[#String];
+ cm = dartcore.declarations[#String];
Expect.equals(reflectClass(String), cm);
Expect.equals(#String, cm.simpleName);
- cm = dartcore.classes[#List];
+ cm = dartcore.declarations[#List];
Expect.equals(reflectClass(List), cm);
Expect.equals(#List, cm.simpleName);
- cm = dartcore.classes[#Null];
+ cm = dartcore.declarations[#Null];
Expect.equals(reflectClass(Null), cm);
Expect.equals(#Null, cm.simpleName);
- cm = dartcore.classes[#Object];
+ cm = dartcore.declarations[#Object];
Expect.equals(reflectClass(Object), cm);
Expect.equals(#Object, cm.simpleName);
- cm = dartcore.classes[#dynamic];
+ cm = dartcore.declarations[#dynamic];
Expect.isNull(cm);
- cm = dartcore.classes[const Symbol('void')];
+ cm = dartcore.declarations[const Symbol('void')];
Expect.isNull(cm);
}
« no previous file with comments | « tests/lib/lib.status ('k') | tests/lib/mirrors/constructor_kinds_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698