OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'package:async_helper/async_helper.dart'; | 6 import 'package:async_helper/async_helper.dart'; |
7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
8 import 'package:compiler/src/common.dart'; | |
9 import 'package:compiler/src/elements/elements.dart' show ClassElement; | 8 import 'package:compiler/src/elements/elements.dart' show ClassElement; |
10 import 'package:compiler/src/elements/names.dart'; | 9 import 'package:compiler/src/elements/names.dart'; |
11 import 'package:compiler/src/universe/call_structure.dart'; | 10 import 'package:compiler/src/universe/call_structure.dart'; |
12 import 'package:compiler/src/universe/selector.dart'; | 11 import 'package:compiler/src/universe/selector.dart'; |
13 import 'package:compiler/src/world.dart' show ClosedWorld, ClassQuery; | 12 import 'package:compiler/src/world.dart' show ClosedWorld, ClassQuery; |
14 import 'type_test_helper.dart'; | 13 import 'type_test_helper.dart'; |
15 | 14 |
16 void main() { | 15 void main() { |
17 asyncTest(() async { | 16 asyncTest(() async { |
18 await testClassSets(); | 17 await testClassSets(); |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 check(subtype, ClassQuery.EXACT, foo, true); | 280 check(subtype, ClassQuery.EXACT, foo, true); |
282 check(subtype, ClassQuery.EXACT, bar, false); | 281 check(subtype, ClassQuery.EXACT, bar, false); |
283 check(subtype, ClassQuery.EXACT, baz, true); | 282 check(subtype, ClassQuery.EXACT, baz, true); |
284 check(subtype, ClassQuery.SUBCLASS, foo, true); | 283 check(subtype, ClassQuery.SUBCLASS, foo, true); |
285 check(subtype, ClassQuery.SUBCLASS, bar, false); | 284 check(subtype, ClassQuery.SUBCLASS, bar, false); |
286 check(subtype, ClassQuery.SUBCLASS, baz, true); | 285 check(subtype, ClassQuery.SUBCLASS, baz, true); |
287 check(subtype, ClassQuery.SUBTYPE, foo, true); | 286 check(subtype, ClassQuery.SUBTYPE, foo, true); |
288 check(subtype, ClassQuery.SUBTYPE, bar, false); | 287 check(subtype, ClassQuery.SUBTYPE, bar, false); |
289 check(subtype, ClassQuery.SUBTYPE, baz, true); | 288 check(subtype, ClassQuery.SUBTYPE, baz, true); |
290 } | 289 } |
OLD | NEW |