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:uri'; | 5 import 'dart:uri'; |
6 import 'parser_helper.dart'; | 6 import 'parser_helper.dart'; |
7 import 'mock_compiler.dart'; | 7 import 'mock_compiler.dart'; |
8 import '../../../sdk/lib/_internal/compiler/compiler.dart'; | 8 import '../../../sdk/lib/_internal/compiler/compiler.dart'; |
9 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' as l
eg; | 9 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' as l
eg; |
10 import '../../../sdk/lib/_internal/compiler/implementation/dart_backend/dart_bac
kend.dart'; | 10 import '../../../sdk/lib/_internal/compiler/implementation/dart_backend/dart_bac
kend.dart'; |
11 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar
t'; | 11 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar
t'; |
12 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; | 12 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; |
13 | 13 |
14 const coreLib = r''' | 14 const coreLib = r''' |
15 library corelib; | 15 library corelib; |
16 class Object {} | 16 class Object {} |
17 interface bool {} | 17 interface bool {} |
18 interface num {} | 18 interface num {} |
19 interface int extends num {} | 19 interface int extends num {} |
20 interface double extends num {} | 20 interface double extends num {} |
21 interface String {} | 21 abstract class String {} |
22 interface Function {} | 22 interface Function {} |
23 interface List {} | 23 interface List {} |
24 interface Map {} | 24 interface Map {} |
25 interface Closure {} | 25 interface Closure {} |
26 interface Dynamic_ {} | 26 interface Dynamic_ {} |
27 interface Null {} | 27 interface Null {} |
28 interface TypeError {} | 28 interface TypeError {} |
29 class Type {} | 29 class Type {} |
30 class Math { | 30 class Math { |
31 static double parseDouble(String s) => 1.0; | 31 static double parseDouble(String s) => 1.0; |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 testDoubleMains(); | 716 testDoubleMains(); |
717 testStaticAccessIoLib(); | 717 testStaticAccessIoLib(); |
718 testLocalFunctionPlaceholder(); | 718 testLocalFunctionPlaceholder(); |
719 testMinification(); | 719 testMinification(); |
720 testClosureLocalsMinified(); | 720 testClosureLocalsMinified(); |
721 testParametersMinified(); | 721 testParametersMinified(); |
722 testDeclarationTypePlaceholders(); | 722 testDeclarationTypePlaceholders(); |
723 testPlatformLibraryMemberNamesAreFixed(); | 723 testPlatformLibraryMemberNamesAreFixed(); |
724 testConflictsWithCoreLib(); | 724 testConflictsWithCoreLib(); |
725 } | 725 } |
OLD | NEW |