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

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

Issue 23890036: Change return type of get typeVariables and typeArguments in ClassMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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/generics_test.dart
diff --git a/tests/lib/mirrors/generics_test.dart b/tests/lib/mirrors/generics_test.dart
index e5e2c2ff179481d714f86b626c9d2d44c6f16915..a3a7ab8714161718f43938060bf8204048e2e06c 100644
--- a/tests/lib/mirrors/generics_test.dart
+++ b/tests/lib/mirrors/generics_test.dart
@@ -19,16 +19,12 @@ class H<A,B,C> {}
typeParameters(mirror, parameterNames) {
Expect.listEquals(parameterNames.map((n) => new Symbol(n)).toList(),
- mirror.typeVariables.keys.toList());
+ mirror.typeVariables.map((v) => v.simpleName).toList());
}
typeArguments(mirror, argumentMirrors) {
Expect.listEquals(argumentMirrors,
- mirror.typeArguments.values.toList());
- if (!mirror.isOriginalDeclaration) {
- Expect.listEquals(mirror.typeVariables.keys.toList(),
- mirror.typeArguments.keys.toList());
- }
+ mirror.typeArguments);
}
main() {

Powered by Google App Engine
This is Rietveld 408576698