Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(697)

Side by Side Diff: tests/compiler/dart2js/subtypeset_test.dart

Issue 2314703002: Split World usage into open, inference, and closed world. (Closed)
Patch Set: Updated cf. comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/simple_inferrer_try_catch_test.dart ('k') | tests/compiler/dart2js/trust_type_annotations_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698