| 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; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 return new Future.immediate(''); | 111 return new Future.immediate(''); |
| 112 } | 112 } |
| 113 | 113 |
| 114 handler(uri, begin, end, message, kind) { | 114 handler(uri, begin, end, message, kind) { |
| 115 if (identical(kind, Diagnostic.ERROR) || identical(kind, Diagnostic.CRASH))
{ | 115 if (identical(kind, Diagnostic.ERROR) || identical(kind, Diagnostic.CRASH))
{ |
| 116 Expect.fail('$uri: $begin-$end: $message [$kind]'); | 116 Expect.fail('$uri: $begin-$end: $message [$kind]'); |
| 117 } | 117 } |
| 118 } | 118 } |
| 119 | 119 |
| 120 final options = <String>['--output-type=dart']; | 120 final options = <String>['--output-type=dart']; |
| 121 // Some tests below are using dart:io. |
| 122 options.add('--categories=Client,Server'); |
| 121 if (minify) options.add('--minify'); | 123 if (minify) options.add('--minify'); |
| 122 if (stripTypes) options.add('--force-strip=types'); | 124 if (stripTypes) options.add('--force-strip=types'); |
| 123 | 125 |
| 124 compile( | 126 compile( |
| 125 scriptUri, | 127 scriptUri, |
| 126 fileUri('libraryRoot/'), | 128 fileUri('libraryRoot/'), |
| 127 fileUri('packageRoot/'), | 129 fileUri('packageRoot/'), |
| 128 provider, | 130 provider, |
| 129 handler, | 131 handler, |
| 130 options).then(continuation); | 132 options).then(continuation); |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 testStaticAccessIoLib(); | 754 testStaticAccessIoLib(); |
| 753 testLocalFunctionPlaceholder(); | 755 testLocalFunctionPlaceholder(); |
| 754 testMinification(); | 756 testMinification(); |
| 755 testClosureLocalsMinified(); | 757 testClosureLocalsMinified(); |
| 756 testParametersMinified(); | 758 testParametersMinified(); |
| 757 testDeclarationTypePlaceholders(); | 759 testDeclarationTypePlaceholders(); |
| 758 testPlatformLibraryMemberNamesAreFixed(); | 760 testPlatformLibraryMemberNamesAreFixed(); |
| 759 testConflictsWithCoreLib(); | 761 testConflictsWithCoreLib(); |
| 760 testUnresolvedNamedConstructor(); | 762 testUnresolvedNamedConstructor(); |
| 761 } | 763 } |
| OLD | NEW |