Chromium Code Reviews| 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.
|
| } |