| OLD | NEW |
| (Empty) | |
| 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 |
| 5 import 'package:expect/expect.dart'; |
| 6 import 'package:async_helper/async_helper.dart'; |
| 7 |
| 8 import "deferred_mixin_lib1.dart" deferred as lib1; |
| 9 import "deferred_mixin_lib2.dart" deferred as lib2; |
| 10 |
| 11 class NonDeferredMixin { |
| 12 foo() => "NonDeferredMixin"; |
| 13 } |
| 14 |
| 15 main() { |
| 16 Expect.equals("NonDeferredMixin", new NonDeferredMixin().foo()); |
| 17 asyncStart(); |
| 18 lib1.loadLibrary().then((_) { |
| 19 Expect.equals("lib1.Mixin", new lib1.Mixin().foo()); |
| 20 Expect.equals("A with NonDeferredMixin", new lib1.A().foo()); |
| 21 Expect.equals("B with lib1.Mixin", new lib1.B().foo()); |
| 22 Expect.equals("C with NonDeferredMixin", new lib1.C().foo()); |
| 23 Expect.equals("D with lib1.Mixin", new lib1.D().foo()); |
| 24 Expect.equals("E with SharedMixin", new lib1.E().foo()); |
| 25 lib2.loadLibrary().then((_) { |
| 26 Expect.equals("lib2.A with SharedMixin", new lib2.A().foo()); |
| 27 asyncEnd(); |
| 28 }); |
| 29 }); |
| 30 } |
| OLD | NEW |