| 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'; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 Expect.fail('$uri: $begin-$end: $message [$kind]'); | 97 Expect.fail('$uri: $begin-$end: $message [$kind]'); |
| 98 } | 98 } |
| 99 } | 99 } |
| 100 | 100 |
| 101 final options = <String>['--output-type=dart']; | 101 final options = <String>['--output-type=dart']; |
| 102 if (minify) options.add('--minify'); | 102 if (minify) options.add('--minify'); |
| 103 if (stripTypes) options.add('--force-strip=types'); | 103 if (stripTypes) options.add('--force-strip=types'); |
| 104 | 104 |
| 105 compile( | 105 compile( |
| 106 scriptUri, | 106 scriptUri, |
| 107 fileUri('libraryRoot'), | 107 fileUri('libraryRoot/'), |
| 108 fileUri('packageRoot'), | 108 fileUri('packageRoot/'), |
| 109 provider, | 109 provider, |
| 110 handler, | 110 handler, |
| 111 options).then(continuation); | 111 options).then(continuation); |
| 112 } | 112 } |
| 113 | 113 |
| 114 testSimpleFileUnparse() { | 114 testSimpleFileUnparse() { |
| 115 final src = ''' | 115 final src = ''' |
| 116 should_be_dropped() { | 116 should_be_dropped() { |
| 117 } | 117 } |
| 118 | 118 |
| (...skipping 597 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 |