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

Side by Side 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, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
1 @A(const B()) 5 @A(const B())
2 library main; 6 library main;
3 7
4 @B() 8 @B()
5 import 'package:async_helper/async_helper.dart'; 9 import 'package:async_helper/async_helper.dart';
6 import 'package:expect/expect.dart'; 10 import 'package:expect/expect.dart';
7 11
8 import "dart:math"; 12 import "dart:math";
9 13
10 import 'deferred_mirrors_metadata_lib.dart' deferred as lib1; 14 import 'deferred_mirrors_metadata_lib.dart' deferred as lib1;
11 15
12 class A { 16 class A {
13 final B b; 17 final B b;
14 const A(this.b); 18 const A(this.b);
15 String toString() => "A"; 19 String toString() => "A";
16 } 20 }
17 21
18 class B { 22 class B {
19 const B(); 23 const B();
20 String toString() => "B"; 24 String toString() => "B";
21 } 25 }
22 26
23 class C { 27 class C {
24 const C(); 28 const C();
25 String toString() => "C"; 29 String toString() => "C";
26 } 30 }
27 31
32 class D {
33 const D();
34 String toString() => "D";
35 }
36
28 void main() { 37 void main() {
29 asyncStart(); 38 asyncStart();
30 lib1.loadLibrary().then((_) { 39 lib1.loadLibrary().then((_) {
31 Expect.equals("ABC", lib1.foo()); 40 Expect.equals("ABCD", lib1.foo());
41 new C();
42 new D();
32 asyncEnd(); 43 asyncEnd();
33 }); 44 });
34 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698