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

Side by Side Diff: tests/compiler/dart2js/needs_no_such_method_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) 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698