Chromium Code Reviews| Index: tests/lib/mirrors/method_mirror_name_test.dart |
| diff --git a/tests/lib/mirrors/method_mirror_test.dart b/tests/lib/mirrors/method_mirror_name_test.dart |
| similarity index 52% |
| rename from tests/lib/mirrors/method_mirror_test.dart |
| rename to tests/lib/mirrors/method_mirror_name_test.dart |
| index 16851c9c209a1634de02ddac7d1103fd82c14204..89be597fbe6cb2a7dff3a1e48246a129d0138c33 100644 |
| --- a/tests/lib/mirrors/method_mirror_test.dart |
| +++ b/tests/lib/mirrors/method_mirror_name_test.dart |
| @@ -4,18 +4,13 @@ |
| import "dart:mirrors"; |
| -import "../../../pkg/unittest/lib/unittest.dart"; |
| - |
| -String _symbolToString(Symbol sym) { |
| - return MirrorSystem.getName(sym); |
| -} |
| +import "package:expect/expect.dart"; |
| +import "./stringify.dart"; |
| doNothing42() {} |
| main() { |
| // Regression test for http://www.dartbug.com/6335 |
| - test("NamedMethodName", () { |
| - var closureMirror = reflect(doNothing42); |
| - expect(_symbolToString(closureMirror.function.simpleName), "doNothing42"); |
| - }); |
| + var closureMirror = reflect(doNothing42); |
| + Expect.equals(stringifySymbol(closureMirror.function.simpleName), "s(doNothing42)"); |
|
Ivan Posva
2013/07/16 22:21:48
Long line.
Michael Lippautz (Google)
2013/07/17 00:42:15
Done.
|
| } |