| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 'dart:uri'; | 6 import 'dart:uri'; |
| 7 import 'parser_helper.dart'; | 7 import 'parser_helper.dart'; |
| 8 import 'mock_compiler.dart'; | 8 import 'mock_compiler.dart'; |
| 9 import '../../../sdk/lib/_internal/compiler/compiler.dart'; | 9 import '../../../sdk/lib/_internal/compiler/compiler.dart'; |
| 10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' as l
eg; | 10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' as l
eg; |
| 11 import '../../../sdk/lib/_internal/compiler/implementation/dart_backend/dart_bac
kend.dart'; | 11 import '../../../sdk/lib/_internal/compiler/implementation/dart_backend/dart_bac
kend.dart'; |
| 12 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar
t'; | 12 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar
t'; |
| 13 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; | 13 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; |
| 14 | 14 |
| 15 const coreLib = r''' | 15 const coreLib = r''' |
| 16 library corelib; | 16 library corelib; |
| 17 class Object {} | 17 class Object {} |
| 18 interface bool {} | 18 interface bool {} |
| 19 interface num {} | 19 interface num {} |
| 20 interface int extends num {} | 20 interface int extends num {} |
| 21 interface double extends num {} | 21 interface double extends num {} |
| 22 abstract class String {} | 22 abstract class String {} |
| 23 interface Function {} | 23 interface Function {} |
| 24 interface List {} | 24 interface List<T> {} |
| 25 interface Map {} | 25 interface Map<K,V> {} |
| 26 interface Closure {} | 26 interface Closure {} |
| 27 interface Dynamic_ {} | 27 interface Dynamic_ {} |
| 28 interface Null {} | 28 interface Null {} |
| 29 interface TypeError {} | 29 interface TypeError {} |
| 30 class Type {} | 30 class Type {} |
| 31 class LinkedHashMap {} | 31 class LinkedHashMap {} |
| 32 class Math { | 32 class Math { |
| 33 static double parseDouble(String s) => 1.0; | 33 static double parseDouble(String s) => 1.0; |
| 34 } | 34 } |
| 35 print(x) {} | 35 print(x) {} |
| (...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 testStaticAccessIoLib(); | 755 testStaticAccessIoLib(); |
| 756 testLocalFunctionPlaceholder(); | 756 testLocalFunctionPlaceholder(); |
| 757 testMinification(); | 757 testMinification(); |
| 758 testClosureLocalsMinified(); | 758 testClosureLocalsMinified(); |
| 759 testParametersMinified(); | 759 testParametersMinified(); |
| 760 testDeclarationTypePlaceholders(); | 760 testDeclarationTypePlaceholders(); |
| 761 testPlatformLibraryMemberNamesAreFixed(); | 761 testPlatformLibraryMemberNamesAreFixed(); |
| 762 testConflictsWithCoreLib(); | 762 testConflictsWithCoreLib(); |
| 763 testUnresolvedNamedConstructor(); | 763 testUnresolvedNamedConstructor(); |
| 764 } | 764 } |
| OLD | NEW |