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

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

Issue 18216002: Implement JsMethodMirror.constructorName. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments Created 7 years, 6 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 | « dart/sdk/lib/_internal/lib/js_mirrors.dart ('k') | dart/tests/lib/mirrors/stringify.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/lib/mirrors/constructors_test.dart
diff --git a/dart/tests/lib/mirrors/constructors_test.dart b/dart/tests/lib/mirrors/constructors_test.dart
index 89fc874786241e38946ea1d13ec519ae94374f7a..b42472f20164bc57a342434b9e3a170f2611d4bc 100644
--- a/dart/tests/lib/mirrors/constructors_test.dart
+++ b/dart/tests/lib/mirrors/constructors_test.dart
@@ -52,4 +52,14 @@ main() {
for (var constructor in bizConstructors.values) {
expect('[]', constructor.parameters);
}
+
+ expect('[s()]',
+ fooConstructors.values.map((m) => m.constructorName).toList());
+ expect('[s()]',
+ barConstructors.values.map((m) => m.constructorName).toList());
+ expect('[s(named)]',
+ bazConstructors.values.map((m) => m.constructorName).toList());
+ expect('[s(), s(named)]',
+ bizConstructors.values.map((m) => m.constructorName).toList()
+ ..sort(compareSymbols));
}
« no previous file with comments | « dart/sdk/lib/_internal/lib/js_mirrors.dart ('k') | dart/tests/lib/mirrors/stringify.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698