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 "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
6 import 'dart:async'; | 6 import 'dart:async'; |
7 import "package:async_helper/async_helper.dart"; | 7 import "package:async_helper/async_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; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 String get userAgent; | 69 String get userAgent; |
70 } | 70 } |
71 '''; | 71 '''; |
72 | 72 |
73 const helperLib = r''' | 73 const helperLib = r''' |
74 library js_helper; | 74 library js_helper; |
75 class JSInvocationMirror {} | 75 class JSInvocationMirror {} |
76 assertHelper(a) {} | 76 assertHelper(a) {} |
77 class Closure {} | 77 class Closure {} |
78 class BoundClosure {} | 78 class BoundClosure {} |
| 79 const patch = 0; |
79 '''; | 80 '''; |
80 | 81 |
81 const foreignLib = r''' | 82 const foreignLib = r''' |
82 var JS; | 83 var JS; |
83 '''; | 84 '''; |
84 | 85 |
85 const isolateHelperLib = r''' | 86 const isolateHelperLib = r''' |
86 class _WorkerStub { | 87 class _WorkerStub { |
87 } | 88 } |
88 '''; | 89 '''; |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 testStaticAccessIoLib(); | 751 testStaticAccessIoLib(); |
751 testLocalFunctionPlaceholder(); | 752 testLocalFunctionPlaceholder(); |
752 testMinification(); | 753 testMinification(); |
753 testClosureLocalsMinified(); | 754 testClosureLocalsMinified(); |
754 testParametersMinified(); | 755 testParametersMinified(); |
755 testDeclarationTypePlaceholders(); | 756 testDeclarationTypePlaceholders(); |
756 testPlatformLibraryMemberNamesAreFixed(); | 757 testPlatformLibraryMemberNamesAreFixed(); |
757 testConflictsWithCoreLib(); | 758 testConflictsWithCoreLib(); |
758 testUnresolvedNamedConstructor(); | 759 testUnresolvedNamedConstructor(); |
759 } | 760 } |
OLD | NEW |