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

Side by Side Diff: tests/compiler/dart2js/jsinterop/world_test.dart

Issue 2860753005: Make elements/names.dart its own library (Closed)
Patch Set: Created 3 years, 7 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 library jsinterop.world_test; 5 library jsinterop.world_test;
6 6
7 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
8 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
9 import 'package:compiler/src/common.dart'; 9 import 'package:compiler/src/common.dart';
10 import 'package:compiler/src/elements/elements.dart' 10 import 'package:compiler/src/elements/elements.dart' show ClassElement;
11 show ClassElement, PublicName; 11 import 'package:compiler/src/elements/names.dart';
12 import 'package:compiler/src/js_backend/js_backend.dart'; 12 import 'package:compiler/src/js_backend/js_backend.dart';
13 import 'package:compiler/src/universe/selector.dart'; 13 import 'package:compiler/src/universe/selector.dart';
14 import 'package:compiler/src/world.dart'; 14 import 'package:compiler/src/world.dart';
15 import '../type_test_helper.dart'; 15 import '../type_test_helper.dart';
16 16
17 void main() { 17 void main() {
18 asyncTest(() async { 18 asyncTest(() async {
19 await testClasses(); 19 await testClasses();
20 }); 20 });
21 } 21 }
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 await test('main() => newE();', directlyInstantiated: ['E']); 200 await test('main() => newE();', directlyInstantiated: ['E']);
201 201
202 await test('main() => newF();', directlyInstantiated: ['F']); 202 await test('main() => newF();', directlyInstantiated: ['F']);
203 203
204 await test('main() => [newD(), newE()];', 204 await test('main() => [newD(), newE()];',
205 directlyInstantiated: ['E'], 205 directlyInstantiated: ['E'],
206 abstractlyInstantiated: ['A', 'B', 'C', 'D'], 206 abstractlyInstantiated: ['A', 'B', 'C', 'D'],
207 indirectlyInstantiated: ['Object', 'Interceptor', 'JavaScriptObject']); 207 indirectlyInstantiated: ['Object', 'Interceptor', 'JavaScriptObject']);
208 } 208 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/gvn_dynamic_field_get_test.dart ('k') | tests/compiler/dart2js/lookup_member_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698