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

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: 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') | no next file » | 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..b675b4a82751653b1f44c9ce5fe00fc0ff206748 100644
--- a/dart/tests/lib/mirrors/constructors_test.dart
+++ b/dart/tests/lib/mirrors/constructors_test.dart
@@ -52,4 +52,15 @@ 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.stringEquals(
+ '[, named]',
+ (bizConstructors.values.map((m) => MirrorSystem.getName(m.constructorName))
+ .toList()..sort()).toString());
kustermann 2013/06/28 16:57:38 As discussed offline, you could sort the Symbols i
ahe 2013/06/28 17:13:28 Done.
}
« no previous file with comments | « dart/sdk/lib/_internal/lib/js_mirrors.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698