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

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

Issue 2992383002: Support use of dill in TypeEnv tests (Closed)
Patch Set: Created 3 years, 4 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 23 matching lines...) Expand all
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
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 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/needs_no_such_method_test.dart ('k') | tests/compiler/dart2js/type_mask2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698