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

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

Issue 22859004: Improve type literals in minified mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added a test, and changed how names are unmangled. Created 7 years, 4 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_rti.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/unmangled_type_test.dart
diff --git a/dart/tests/lib/mirrors/unnamed_library_test.dart b/dart/tests/lib/mirrors/unmangled_type_test.dart
similarity index 67%
copy from dart/tests/lib/mirrors/unnamed_library_test.dart
copy to dart/tests/lib/mirrors/unmangled_type_test.dart
index 1e81eaab1284ae5b7f1d4973bfc114ce4572c471..dbc6b62437908677c6fb6c1dab670b8d0dd7d2b6 100644
--- a/dart/tests/lib/mirrors/unnamed_library_test.dart
+++ b/dart/tests/lib/mirrors/unmangled_type_test.dart
@@ -2,14 +2,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// No library declaration.
-
import 'dart:mirrors';
import 'package:expect/expect.dart';
-class C {}
+class Foo {
+}
main() {
- Expect.equals(const Symbol(""), reflectClass(C).owner.simpleName);
+ Expect.stringEquals('Foo', '${new Foo().runtimeType}');
+ Expect.stringEquals('foo', MirrorSystem.getName(new Symbol('foo')));
}
« no previous file with comments | « dart/sdk/lib/_internal/lib/js_rti.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698