| 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 '../../../lib/compiler/compiler.dart'; | 8 import '../../../lib/compiler/compiler.dart'; |
| 9 import '../../../lib/compiler/implementation/dart2jslib.dart' as leg; | 9 import '../../../lib/compiler/implementation/dart2jslib.dart' as leg; |
| 10 import '../../../lib/compiler/implementation/dart_backend/dart_backend.dart'; | 10 import '../../../lib/compiler/implementation/dart_backend/dart_backend.dart'; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 const ioLib = r''' | 34 const ioLib = r''' |
| 35 #library('io'); | 35 #library('io'); |
| 36 class Platform { | 36 class Platform { |
| 37 static int operatingSystem; | 37 static int operatingSystem; |
| 38 } | 38 } |
| 39 '''; | 39 '''; |
| 40 | 40 |
| 41 const htmlLib = r''' | 41 const htmlLib = r''' |
| 42 #library('html'); | 42 #library('html'); |
| 43 Window __window; | 43 Window __window; |
| 44 Window get window() => __window; | 44 Window get window => __window; |
| 45 abstract class Window { | 45 abstract class Window { |
| 46 abstract Navigator get navigator; | 46 Navigator get navigator; |
| 47 } | 47 } |
| 48 abstract class Navigator { | 48 abstract class Navigator { |
| 49 abstract String get userAgent; | 49 String get userAgent; |
| 50 } | 50 } |
| 51 '''; | 51 '''; |
| 52 | 52 |
| 53 const helperLib = r''' | 53 const helperLib = r''' |
| 54 #library('js_helper'); | 54 #library('js_helper'); |
| 55 '''; | 55 '''; |
| 56 | 56 |
| 57 testDart2Dart(String src, {void continuation(String s), bool minify: false, | 57 testDart2Dart(String src, {void continuation(String s), bool minify: false, |
| 58 bool stripTypes: false}) { | 58 bool stripTypes: false}) { |
| 59 // If continuation is not provided, check that source string remains the same. | 59 // If continuation is not provided, check that source string remains the same. |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 testInterfaceDefaultAnotherLib(); | 807 testInterfaceDefaultAnotherLib(); |
| 808 testStaticAccessIoLib(); | 808 testStaticAccessIoLib(); |
| 809 testLocalFunctionPlaceholder(); | 809 testLocalFunctionPlaceholder(); |
| 810 testMinification(); | 810 testMinification(); |
| 811 testClosureLocalsMinified(); | 811 testClosureLocalsMinified(); |
| 812 testParametersMinified(); | 812 testParametersMinified(); |
| 813 testTypeVariablesInDifferentLibraries(); | 813 testTypeVariablesInDifferentLibraries(); |
| 814 testDeclarationTypePlaceholders(); | 814 testDeclarationTypePlaceholders(); |
| 815 testPlatformLibraryMemberNamesAreFixed(); | 815 testPlatformLibraryMemberNamesAreFixed(); |
| 816 } | 816 } |
| OLD | NEW |