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

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

Issue 220203004: Improve the mirror support for deferred loading. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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: tests/lib/mirrors/deferred_mirrors_metadata_test.dart
diff --git a/tests/lib/mirrors/deferred_mirrors_metadata_test.dart b/tests/lib/mirrors/deferred_mirrors_metadata_test.dart
index be1ad57e35a292a7c51430cfe1082748dfe7e055..02b007d531dc5106d6789c3752c47107b65d8a7f 100644
--- a/tests/lib/mirrors/deferred_mirrors_metadata_test.dart
+++ b/tests/lib/mirrors/deferred_mirrors_metadata_test.dart
@@ -1,3 +1,7 @@
+// Copyright (c) 2014, 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.
+
@A(const B())
library main;
@@ -25,10 +29,17 @@ class C {
String toString() => "C";
}
+class D {
+ const D();
+ String toString() => "D";
+}
+
void main() {
asyncStart();
lib1.loadLibrary().then((_) {
- Expect.equals("ABC", lib1.foo());
+ Expect.equals("ABCD", lib1.foo());
+ new C();
+ new D();
asyncEnd();
});
}

Powered by Google App Engine
This is Rietveld 408576698