| 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 testLibraryGetSet() { | 417 testLibraryGetSet() { |
| 418 var librarySrc = ''' | 418 var librarySrc = ''' |
| 419 #library('mylib'); | 419 #library('mylib'); |
| 420 | 420 |
| 421 get topgetset => 5; | 421 get topgetset => 5; |
| 422 set topgetset(arg) {} | 422 set topgetset(arg) {} |
| 423 '''; | 423 '''; |
| 424 var mainSrc = ''' | 424 var mainSrc = ''' |
| 425 #import('mylib.dart', prefix: 'mylib'); | 425 #import('mylib.dart', prefix: 'mylib'); |
| 426 | 426 |
| 427 get topgetset() => 6; | 427 get topgetset => 6; |
| 428 set topgetset(arg) {} | 428 set topgetset(arg) {} |
| 429 | 429 |
| 430 main() { | 430 main() { |
| 431 topgetset; | 431 topgetset; |
| 432 topgetset = 6; | 432 topgetset = 6; |
| 433 | 433 |
| 434 mylib.topgetset; | 434 mylib.topgetset; |
| 435 mylib.topgetset = 5; | 435 mylib.topgetset = 5; |
| 436 } | 436 } |
| 437 '''; | 437 '''; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 testVariableDefinitions(); | 497 testVariableDefinitions(); |
| 498 testGetSet(); | 498 testGetSet(); |
| 499 testFactoryConstructor(); | 499 testFactoryConstructor(); |
| 500 testAbstractClass(); | 500 testAbstractClass(); |
| 501 //testConflictSendsRename(); | 501 //testConflictSendsRename(); |
| 502 testNoConflictSendsRename(); | 502 testNoConflictSendsRename(); |
| 503 testConflictLibraryClassRename(); | 503 testConflictLibraryClassRename(); |
| 504 testDefaultClassWithArgs(); | 504 testDefaultClassWithArgs(); |
| 505 testClassExtendsWithArgs(); | 505 testClassExtendsWithArgs(); |
| 506 testStaticInvocation(); | 506 testStaticInvocation(); |
| 507 // testLibraryGetSet(); // http://dartbug.com/4604 | 507 testLibraryGetSet(); |
| 508 testFieldTypeOutput(); | 508 testFieldTypeOutput(); |
| 509 testDefaultClassNamePlaceholder(); | 509 testDefaultClassNamePlaceholder(); |
| 510 } | 510 } |
| OLD | NEW |