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

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

Issue 19387003: Retain abstract classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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: dart/tests/lib/mirrors/abstract_test.dart
diff --git a/dart/samples/tests/samples/browser/spirodraw_test.dart b/dart/tests/lib/mirrors/abstract_test.dart
similarity index 50%
copy from dart/samples/tests/samples/browser/spirodraw_test.dart
copy to dart/tests/lib/mirrors/abstract_test.dart
index 2e6e5586cea32655f696a34410febbc6c139b9f9..39923639e08b8a559e2de07d8e825a78c6a994eb 100644
--- a/dart/samples/tests/samples/browser/spirodraw_test.dart
+++ b/dart/tests/lib/mirrors/abstract_test.dart
@@ -2,16 +2,18 @@
// 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 spirodraw_test;
+// Test abstract classes are retained.
-import '../../../spirodraw/web/spirodraw.dart' as spirodraw;
+library test.abstract_test;
-// @static-clean
+import 'dart:mirrors';
-/**
- * This test exists to ensure that the spirodraw sample compiles without errors.
- */
-void main() {
-
+import 'stringify.dart';
+
+abstract class Foo {
}
+void main() {
+ expect('Class(s(Foo) in s(test.abstract_test), top-level)',
+ reflectClass(Foo));
+}
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart ('k') | dart/tests/lib/mirrors/parameter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698