| 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("../../../lib/compiler/compiler.dart"); | 7 #import("../../../lib/compiler/compiler.dart"); |
| 8 #import("../../../lib/compiler/implementation/tree/tree.dart"); | 8 #import("../../../lib/compiler/implementation/tree/tree.dart"); |
| 9 | 9 |
| 10 testUnparse(String statement) { | 10 testUnparse(String statement) { |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 main() { | 409 main() { |
| 410 mylib.topgetset; | 410 mylib.topgetset; |
| 411 mylib.topgetset = 5; | 411 mylib.topgetset = 5; |
| 412 } | 412 } |
| 413 '''; | 413 '''; |
| 414 var expectedResult = 'set topgetset(arg){}get topgetset()=> 5;main(){topgetset
; topgetset=5;}'; | 414 var expectedResult = 'set topgetset(arg){}get topgetset()=> 5;main(){topgetset
; topgetset=5;}'; |
| 415 testDart2DartWithLibrary(mainSrc, librarySrc, | 415 testDart2DartWithLibrary(mainSrc, librarySrc, |
| 416 (String result) { Expect.equals(expectedResult, result); }); | 416 (String result) { Expect.equals(expectedResult, result); }); |
| 417 } | 417 } |
| 418 | 418 |
| 419 testFieldTypeOutput() { |
| 420 testDart2Dart('main(){new A().field;}class B{}class A{B field;}'); |
| 421 } |
| 422 |
| 419 main() { | 423 main() { |
| 420 testSignedConstants(); | 424 testSignedConstants(); |
| 421 testGenericTypes(); | 425 testGenericTypes(); |
| 422 testForLoop(); | 426 testForLoop(); |
| 423 testEmptyList(); | 427 testEmptyList(); |
| 424 testClosure(); | 428 testClosure(); |
| 425 testIndexedOperatorDecl(); | 429 testIndexedOperatorDecl(); |
| 426 testNativeMethods(); | 430 testNativeMethods(); |
| 427 testPrefixIncrements(); | 431 testPrefixIncrements(); |
| 428 testConstModifier(); | 432 testConstModifier(); |
| 429 testSimpleFileUnparse(); | 433 testSimpleFileUnparse(); |
| 430 testTopLevelField(); | 434 testTopLevelField(); |
| 431 testSimpleObjectInstantiation(); | 435 testSimpleObjectInstantiation(); |
| 432 testSimpleTopLevelClass(); | 436 testSimpleTopLevelClass(); |
| 433 testClassWithSynthesizedConstructor(); | 437 testClassWithSynthesizedConstructor(); |
| 434 testClassWithMethod(); | 438 testClassWithMethod(); |
| 435 testExtendsImplements(); | 439 testExtendsImplements(); |
| 436 testVariableDefinitions(); | 440 testVariableDefinitions(); |
| 437 testGetSet(); | 441 testGetSet(); |
| 438 testFactoryConstructor(); | 442 testFactoryConstructor(); |
| 439 testAbstractClass(); | 443 testAbstractClass(); |
| 440 testConflictSendsRename(); | 444 testConflictSendsRename(); |
| 441 testNoConflictSendsRename(); | 445 testNoConflictSendsRename(); |
| 442 testConflictLibraryClassRename(); | 446 testConflictLibraryClassRename(); |
| 443 testDefaultClassWithArgs(); | 447 testDefaultClassWithArgs(); |
| 444 testClassExtendsWithArgs(); | 448 testClassExtendsWithArgs(); |
| 445 testStaticInvocation(); | 449 testStaticInvocation(); |
| 446 testLibraryGetSet(); | 450 testLibraryGetSet(); |
| 451 testFieldTypeOutput(); |
| 447 } | 452 } |
| OLD | NEW |