Index: test/codegen/lib/mirrors/native_class_test.dart |
diff --git a/test/codegen/lib/mirrors/native_class_test.dart b/test/codegen/lib/mirrors/native_class_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b6171d0c114e393832c2fb9f703cf5909486a681 |
--- /dev/null |
+++ b/test/codegen/lib/mirrors/native_class_test.dart |
@@ -0,0 +1,19 @@ |
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
+// 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. |
+ |
+library test.native_class_test; |
+ |
+import 'dart:html'; |
+ |
+@MirrorsUsed(targets: 'dart.dom.html.Element') |
+import 'dart:mirrors'; |
+ |
+import 'stringify.dart'; |
+ |
+main() { |
+ expect('s(dart.dom.html.Element)', reflectClass(Element).qualifiedName); |
+ expect( |
+ 's(dart.dom.html.Node)', reflectClass(Element).superclass.qualifiedName); |
+ window.postMessage('unittest-suite-success', '*'); |
+} |