| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 library main; | 4 library main; |
| 5 | 5 |
| 6 import "deferred_redirecting_factory_lib1.dart" deferred as lib1; | 6 import "deferred_redirecting_factory_lib1.dart" deferred as lib1; |
| 7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
| 8 import "package:async_helper/async_helper.dart"; | 8 import "package:async_helper/async_helper.dart"; |
| 9 | 9 |
| 10 class C { | 10 class C { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 }); | 31 }); |
| 32 } | 32 } |
| 33 | 33 |
| 34 test3() async { | 34 test3() async { |
| 35 await lib1.loadLibrary(); | 35 await lib1.loadLibrary(); |
| 36 await lib1.loadLib2(); | 36 await lib1.loadLib2(); |
| 37 Expect.equals("lib1", new C.a().foo); | 37 Expect.equals("lib1", new C.a().foo); |
| 38 Expect.equals("lib2", new C.b().foo); | 38 Expect.equals("lib2", new C.b().foo); |
| 39 } | 39 } |
| 40 | 40 |
| 41 | |
| 42 test() async { | 41 test() async { |
| 43 await test1(); | 42 await test1(); |
| 44 await test2(); | 43 await test2(); |
| 45 await test3(); | 44 await test3(); |
| 46 } | 45 } |
| 47 | 46 |
| 48 void main() { | 47 void main() { |
| 49 asyncStart(); | 48 asyncStart(); |
| 50 test().then((_) => asyncEnd()); | 49 test().then((_) => asyncEnd()); |
| 51 } | 50 } |
| OLD | NEW |