| 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 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 Loading... |
| 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 } |
| OLD | NEW |