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

Unified Diff: test/codegen/lib/mirrors/unmangled_type_test.dart

Issue 2265533002: Add mirrors tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 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
Index: test/codegen/lib/mirrors/unmangled_type_test.dart
diff --git a/test/codegen/language/malbounded_type_literal_test.dart b/test/codegen/lib/mirrors/unmangled_type_test.dart
similarity index 61%
copy from test/codegen/language/malbounded_type_literal_test.dart
copy to test/codegen/lib/mirrors/unmangled_type_test.dart
index ca64d7efa8b66168b1bb82207f864ee87d467797..dbc6b62437908677c6fb6c1dab670b8d0dd7d2b6 100644
--- a/test/codegen/language/malbounded_type_literal_test.dart
+++ b/test/codegen/lib/mirrors/unmangled_type_test.dart
@@ -2,13 +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.
+import 'dart:mirrors';
+
import 'package:expect/expect.dart';
-class Super<T extends num> {}
-class Malbounded extends Super<String> {}
+class Foo {
+}
main() {
- Type t = Malbounded;
- Expect.isNotNull(t);
- Expect.isTrue(t is Type);
+ Expect.stringEquals('Foo', '${new Foo().runtimeType}');
+ Expect.stringEquals('foo', MirrorSystem.getName(new Symbol('foo')));
}
« no previous file with comments | « test/codegen/lib/mirrors/typevariable_mirror_metadata_test.dart ('k') | test/codegen/lib/mirrors/unnamed_library_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698