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

Side by Side Diff: tests/lib/mirrors/deferred_mirrors_metadata_test.dart

Issue 201613006: Introduces the new syntax 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/lib/lib.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 @A(const B()) 1 @A(const B())
2 library main; 2 library main;
3 3
4 @B() 4 @B()
5 import 'package:async_helper/async_helper.dart'; 5 import 'package:async_helper/async_helper.dart';
6 import 'package:expect/expect.dart'; 6 import 'package:expect/expect.dart';
7 7
8 import "dart:async";
9 import "dart:math"; 8 import "dart:math";
10 9
11 @l import 'deferred_mirrors_metadata_lib.dart' as lib1; 10 import 'deferred_mirrors_metadata_lib.dart' deferred as lib1;
12
13 const l = const DeferredLibrary("lib1");
14
15 11
16 class A { 12 class A {
17 final B b; 13 final B b;
18 const A(this.b); 14 const A(this.b);
19 String toString() => "A"; 15 String toString() => "A";
20 } 16 }
21 17
22 class B { 18 class B {
23 const B(); 19 const B();
24 String toString() => "B"; 20 String toString() => "B";
25 } 21 }
26 22
27 class C { 23 class C {
28 const C(); 24 const C();
29 String toString() => "C"; 25 String toString() => "C";
30 } 26 }
31 27
32 void main() { 28 void main() {
33 asyncStart(); 29 asyncStart();
34 l.load().then((_) { 30 lib1.loadLibrary().then((_) {
35 Expect.equals("ABC", lib1.foo()); 31 Expect.equals("ABC", lib1.foo());
36 asyncEnd(); 32 asyncEnd();
37 }); 33 });
38 } 34 }
OLDNEW
« no previous file with comments | « tests/lib/lib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698