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 | 4 |
5 library world_test; | 5 library world_test; |
6 | 6 |
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 import 'type_test_helper.dart'; | 9 import 'type_test_helper.dart'; |
10 import 'package:compiler/src/elements/elements.dart' | 10 import 'package:compiler/src/elements/elements.dart' |
11 show Element, ClassElement; | 11 show Element, ClassElement; |
12 import 'package:compiler/src/world.dart' show ClassWorld; | 12 import 'package:compiler/src/dart2jslib.dart'; |
13 | 13 |
14 void main() { | 14 void main() { |
15 asyncTest(() => TypeEnvironment.create(r""" | 15 asyncTest(() => TypeEnvironment.create(r""" |
16 class A {} | 16 class A {} |
17 class B {} | 17 class B {} |
18 class C_Super extends A {} | 18 class C_Super extends A {} |
19 class C extends C_Super {} | 19 class C extends C_Super {} |
20 class D implements A {} | 20 class D implements A {} |
21 class E extends B implements A {} | 21 class E extends B implements A {} |
22 class F extends Object with A implements B {} | 22 class F extends Object with A implements B {} |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 testMixinUses(A, [F.superclass, G.superclass.superclass]); | 143 testMixinUses(A, [F.superclass, G.superclass.superclass]); |
144 testMixinUses(B, [G.superclass]); | 144 testMixinUses(B, [G.superclass]); |
145 testMixinUses(C, []); | 145 testMixinUses(C, []); |
146 testMixinUses(D, []); | 146 testMixinUses(D, []); |
147 testMixinUses(E, []); | 147 testMixinUses(E, []); |
148 testMixinUses(F, []); | 148 testMixinUses(F, []); |
149 testMixinUses(G, []); | 149 testMixinUses(G, []); |
150 | 150 |
151 })); | 151 })); |
152 } | 152 } |
OLD | NEW |