| 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/dart_backend/dart_backend.dart"); | 9 #import("../../../lib/compiler/implementation/dart_backend/dart_backend.dart"); |
| 10 #import("../../../lib/compiler/implementation/elements/elements.dart"); | 10 #import("../../../lib/compiler/implementation/elements/elements.dart"); |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 | 495 |
| 496 main() { | 496 main() { |
| 497 new I(); | 497 new I(); |
| 498 new A(); | 498 new A(); |
| 499 | 499 |
| 500 new mylib.I(); | 500 new mylib.I(); |
| 501 new mylib.A(); | 501 new mylib.A(); |
| 502 } | 502 } |
| 503 '''; | 503 '''; |
| 504 var expectedResult = | 504 var expectedResult = |
| 505 'interface p_I default B{p_I();}' | 505 'interface I default B{I();}' |
| 506 'class A implements p_I{A(){}}' | 506 'class A implements I{A(){}}' |
| 507 'class B{factory p_I(){}}' | 507 'class B{factory I(){}}' |
| 508 'interface I default p_B{I();}' | 508 'interface p_I default p_B{p_I();}' |
| 509 'class p_A implements I{p_A(){}}' | 509 'class p_A implements p_I{p_A(){}}' |
| 510 'class p_B{factory I(){}}' | 510 'class p_B{factory p_I(){}}' |
| 511 'main(){new I(); new p_A(); new p_I(); new A();}'; | 511 'main(){new p_I(); new p_A(); new I(); new A();}'; |
| 512 testDart2DartWithLibrary(mainSrc, librarySrc, | 512 testDart2DartWithLibrary(mainSrc, librarySrc, |
| 513 (String result) { Expect.equals(expectedResult, result); }); | 513 (String result) { Expect.equals(expectedResult, result); }); |
| 514 } | 514 } |
| 515 | 515 |
| 516 main() { | 516 main() { |
| 517 testSignedConstants(); | 517 testSignedConstants(); |
| 518 testGenericTypes(); | 518 testGenericTypes(); |
| 519 testForLoop(); | 519 testForLoop(); |
| 520 testEmptyList(); | 520 testEmptyList(); |
| 521 testClosure(); | 521 testClosure(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 538 testNoConflictSendsRename(); | 538 testNoConflictSendsRename(); |
| 539 testConflictLibraryClassRename(); | 539 testConflictLibraryClassRename(); |
| 540 testDefaultClassWithArgs(); | 540 testDefaultClassWithArgs(); |
| 541 testClassExtendsWithArgs(); | 541 testClassExtendsWithArgs(); |
| 542 testStaticInvocation(); | 542 testStaticInvocation(); |
| 543 testLibraryGetSet(); | 543 testLibraryGetSet(); |
| 544 testFieldTypeOutput(); | 544 testFieldTypeOutput(); |
| 545 testDefaultClassNamePlaceholder(); | 545 testDefaultClassNamePlaceholder(); |
| 546 testFactoryRename(); | 546 testFactoryRename(); |
| 547 } | 547 } |
| OLD | NEW |