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

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

Issue 2939063002: Strong mode cleaning of many dart2js tests. (Closed)
Patch Set: Use ClassElement. Created 3 years, 6 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';
11 import 'type_test_helper.dart'; 11 import 'type_test_helper.dart';
12 import 'package:compiler/src/elements/elements.dart' show Element, ClassElement; 12 import 'package:compiler/src/elements/elements.dart' show ClassElement;
13 import 'package:compiler/src/universe/class_set.dart'; 13 import 'package:compiler/src/universe/class_set.dart';
14 import 'package:compiler/src/world.dart'; 14 import 'package:compiler/src/world.dart';
15 15
16 void main() { 16 void main() {
17 asyncTest(() => TypeEnvironment 17 asyncTest(() => TypeEnvironment
18 .create( 18 .create(
19 r""" 19 r"""
20 /// A 20 /// A
21 /// / \ 21 /// / \
22 /// B C 22 /// B C
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 checkClass(B, [B, D, E]); 74 checkClass(B, [B, D, E]);
75 checkClass(C, [C, E, F, G, H, B, D, I]); 75 checkClass(C, [C, E, F, G, H, B, D, I]);
76 checkClass(D, [D]); 76 checkClass(D, [D]);
77 checkClass(E, [E]); 77 checkClass(E, [E]);
78 checkClass(F, [F]); 78 checkClass(F, [F]);
79 checkClass(G, [G]); 79 checkClass(G, [G]);
80 checkClass(H, [H, I]); 80 checkClass(H, [H, I]);
81 checkClass(I, [I]); 81 checkClass(I, [I]);
82 })); 82 }));
83 } 83 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698