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

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

Issue 180843012: Make deferred loading and meta-data play better. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | « tests/lib/mirrors/deferred_mirrors_metadata_lib.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..6d3bbc6bfc8f75ac6fd70b289cef2ea9de8d4f75
--- /dev/null
+++ b/tests/lib/mirrors/deferred_mirrors_metadata_test.dart
@@ -0,0 +1,38 @@
+@A(const B())
+library main;
+
+@B()
+import 'package:async_helper/async_helper.dart';
+import 'package:expect/expect.dart';
+
+import "dart:async";
+import "dart:math";
+
+@l import 'deferred_mirrors_metadata_lib.dart' as lib1;
+
+const l = const DeferredLibrary("lib1");
+
+
+class A {
+ final B b;
+ const A(this.b);
+ String toString() => "A";
+}
+
+class B {
+ const B();
+ String toString() => "B";
+}
+
+class C {
+ const C();
+ String toString() => "C";
+}
+
+void main() {
+ asyncStart();
+ l.load().then((_) {
+ Expect.equals("ABC", lib1.foo());
+ asyncEnd();
+ });
+}
« no previous file with comments | « tests/lib/mirrors/deferred_mirrors_metadata_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698