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 // Test for iterators on for [SubclassNode]. | 5 // Test for iterators on for [SubclassNode]. |
6 | 6 |
7 library subtypeset_test; | 7 library subtypeset_test; |
8 | 8 |
9 import 'package:expect/expect.dart'; | 9 import 'package:expect/expect.dart'; |
10 import 'package:async_helper/async_helper.dart'; | 10 import 'package:async_helper/async_helper.dart'; |
(...skipping 27 matching lines...) Expand all Loading... |
38 main() { | 38 main() { |
39 new A(); | 39 new A(); |
40 new C(); | 40 new C(); |
41 new D(); | 41 new D(); |
42 new E(); | 42 new E(); |
43 new F(); | 43 new F(); |
44 new G(); | 44 new G(); |
45 } | 45 } |
46 """, | 46 """, |
47 useMockCompiler: false).then((env) { | 47 useMockCompiler: false).then((env) { |
48 World world = env.compiler.world; | 48 World world = env.compiler.closedWorld; |
49 | 49 |
50 ClassElement A = env.getElement("A"); | 50 ClassElement A = env.getElement("A"); |
51 ClassElement B = env.getElement("B"); | 51 ClassElement B = env.getElement("B"); |
52 ClassElement C = env.getElement("C"); | 52 ClassElement C = env.getElement("C"); |
53 ClassElement D = env.getElement("D"); | 53 ClassElement D = env.getElement("D"); |
54 ClassElement E = env.getElement("E"); | 54 ClassElement E = env.getElement("E"); |
55 ClassElement F = env.getElement("F"); | 55 ClassElement F = env.getElement("F"); |
56 ClassElement G = env.getElement("G"); | 56 ClassElement G = env.getElement("G"); |
57 ClassElement H = env.getElement("H"); | 57 ClassElement H = env.getElement("H"); |
58 ClassElement I = env.getElement("I"); | 58 ClassElement I = env.getElement("I"); |
(...skipping 13 matching lines...) Expand all Loading... |
72 checkClass(B, [B, D, E]); | 72 checkClass(B, [B, D, E]); |
73 checkClass(C, [C, E, F, G, H, B, D, I]); | 73 checkClass(C, [C, E, F, G, H, B, D, I]); |
74 checkClass(D, [D]); | 74 checkClass(D, [D]); |
75 checkClass(E, [E]); | 75 checkClass(E, [E]); |
76 checkClass(F, [F]); | 76 checkClass(F, [F]); |
77 checkClass(G, [G]); | 77 checkClass(G, [G]); |
78 checkClass(H, [H, I]); | 78 checkClass(H, [H, I]); |
79 checkClass(I, [I]); | 79 checkClass(I, [I]); |
80 })); | 80 })); |
81 } | 81 } |
OLD | NEW |