| 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/leg.dart", prefix:'leg'); | 9 #import("../../../lib/compiler/implementation/leg.dart", prefix:'leg'); |
| 10 #import("../../../lib/compiler/implementation/dart_backend/dart_backend.dart"); | 10 #import("../../../lib/compiler/implementation/dart_backend/dart_backend.dart"); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 Expect.fail('$uri: $begin-$end: $message [$kind]'); | 80 Expect.fail('$uri: $begin-$end: $message [$kind]'); |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| 84 compile( | 84 compile( |
| 85 scriptUri, | 85 scriptUri, |
| 86 fileUri('libraryRoot'), | 86 fileUri('libraryRoot'), |
| 87 fileUri('packageRoot'), | 87 fileUri('packageRoot'), |
| 88 provider, | 88 provider, |
| 89 handler, | 89 handler, |
| 90 const ['--output-type=dart', '--unparse-validation']).then(continuation); | 90 const ['--output-type=dart']).then(continuation); |
| 91 } | 91 } |
| 92 | 92 |
| 93 testSignedConstants() { | 93 testSignedConstants() { |
| 94 testUnparse('var x=+42;'); | 94 testUnparse('var x=+42;'); |
| 95 testUnparse('var x=+.42;'); | 95 testUnparse('var x=+.42;'); |
| 96 testUnparse('var x=-42;'); | 96 testUnparse('var x=-42;'); |
| 97 testUnparse('var x=-.42;'); | 97 testUnparse('var x=-.42;'); |
| 98 testUnparse('var x=+0;'); | 98 testUnparse('var x=+0;'); |
| 99 testUnparse('var x=+0.0;'); | 99 testUnparse('var x=+0.0;'); |
| 100 testUnparse('var x=+.0;'); | 100 testUnparse('var x=+.0;'); |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 testFieldTypeOutput(); | 705 testFieldTypeOutput(); |
| 706 testDefaultClassNamePlaceholder(); | 706 testDefaultClassNamePlaceholder(); |
| 707 testFactoryRename(); | 707 testFactoryRename(); |
| 708 testTypeVariablesAreRenamed(); | 708 testTypeVariablesAreRenamed(); |
| 709 testClassTypeArgumentBound(); | 709 testClassTypeArgumentBound(); |
| 710 testDoubleMains(); | 710 testDoubleMains(); |
| 711 testInterfaceDefaultAnotherLib(); | 711 testInterfaceDefaultAnotherLib(); |
| 712 testStaticAccessIoLib(); | 712 testStaticAccessIoLib(); |
| 713 testLocalFunctionPlaceholder(); | 713 testLocalFunctionPlaceholder(); |
| 714 } | 714 } |
| OLD | NEW |