Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: tests/compiler/dart2js/unparser_test.dart

Issue 10860042: Fix the test to follow new getter syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698