| 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 23 matching lines...) Expand all Loading... |
| 34 class I implements H {} | 34 class I implements H {} |
| 35 """, mainSource: r""" | 35 """, mainSource: r""" |
| 36 main() { | 36 main() { |
| 37 new A(); | 37 new A(); |
| 38 new C(); | 38 new C(); |
| 39 new D(); | 39 new D(); |
| 40 new E(); | 40 new E(); |
| 41 new F(); | 41 new F(); |
| 42 new G(); | 42 new G(); |
| 43 } | 43 } |
| 44 """, useMockCompiler: false).then((env) { | 44 """, compileMode: CompileMode.memory).then((env) { |
| 45 ClosedWorld world = env.closedWorld; | 45 ClosedWorld world = env.closedWorld; |
| 46 | 46 |
| 47 ClassElement A = env.getElement("A"); | 47 ClassElement A = env.getElement("A"); |
| 48 ClassElement B = env.getElement("B"); | 48 ClassElement B = env.getElement("B"); |
| 49 ClassElement C = env.getElement("C"); | 49 ClassElement C = env.getElement("C"); |
| 50 ClassElement D = env.getElement("D"); | 50 ClassElement D = env.getElement("D"); |
| 51 ClassElement E = env.getElement("E"); | 51 ClassElement E = env.getElement("E"); |
| 52 ClassElement F = env.getElement("F"); | 52 ClassElement F = env.getElement("F"); |
| 53 ClassElement G = env.getElement("G"); | 53 ClassElement G = env.getElement("G"); |
| 54 ClassElement H = env.getElement("H"); | 54 ClassElement H = env.getElement("H"); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 69 checkClass(B, [B, D, E]); | 69 checkClass(B, [B, D, E]); |
| 70 checkClass(C, [C, E, F, G, H, B, D, I]); | 70 checkClass(C, [C, E, F, G, H, B, D, I]); |
| 71 checkClass(D, [D]); | 71 checkClass(D, [D]); |
| 72 checkClass(E, [E]); | 72 checkClass(E, [E]); |
| 73 checkClass(F, [F]); | 73 checkClass(F, [F]); |
| 74 checkClass(G, [G]); | 74 checkClass(G, [G]); |
| 75 checkClass(H, [H, I]); | 75 checkClass(H, [H, I]); |
| 76 checkClass(I, [I]); | 76 checkClass(I, [I]); |
| 77 })); | 77 })); |
| 78 } | 78 } |
| OLD | NEW |