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

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

Issue 10855264: Enable somehow disabled test. (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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 mylib.globalVarInitialized2; 272 mylib.globalVarInitialized2;
273 mylib.globalfoo(); 273 mylib.globalfoo();
274 mylib.A.field; 274 mylib.A.field;
275 mylib.A.staticfoo(); 275 mylib.A.staticfoo();
276 new mylib.A(); 276 new mylib.A();
277 new mylib.A.fromFoo(); 277 new mylib.A.fromFoo();
278 new mylib.A().foo(); 278 new mylib.A().foo();
279 } 279 }
280 '''; 280 ''';
281 var expectedResult = 281 var expectedResult =
282 'globalfoo(){}var p_globalVar;var globalVarInitialized=6,p_globalVarInitia lized2=7;' 282 'globalfoo(){}var globalVar;var globalVarInitialized=6,globalVarInitialize d2=7;'
283 'class A{A(){}A.fromFoo(){}static staticfoo(){}foo(){}static final field=5 ;}'
284 'p_globalfoo(){}var p_globalVar;var p_globalVarInitialized=6,p_globalVarIn itialized2=7;'
283 'class p_A{p_A(){}p_A.fromFoo(){}static staticfoo(){}foo(){}static final f ield=5;}' 285 'class p_A{p_A(){}p_A.fromFoo(){}static staticfoo(){}foo(){}static final f ield=5;}'
284 'p_globalfoo(){}var globalVar;var p_globalVarInitialized=6,globalVarInitia lized2=7;' 286 'main(){p_globalVar; p_globalVarInitialized; p_globalVarInitialized2; p_gl obalfoo();'
285 'class A{A(){}A.fromFoo(){}static staticfoo(){}foo(){}static final field=5 ;}' 287 ' p_A.field; p_A.staticfoo();'
286 'main(){globalVar; p_globalVarInitialized; globalVarInitialized2; p_global foo();' 288 ' new p_A(); new p_A.fromFoo(); new p_A().foo();'
289 ' globalVar; globalVarInitialized; globalVarInitialized2; globalfoo();'
287 ' A.field; A.staticfoo();' 290 ' A.field; A.staticfoo();'
288 ' new A(); new A.fromFoo(); new A().foo();' 291 ' new A(); new A.fromFoo(); new A().foo();}';
289 ' p_globalVar; globalVarInitialized; p_globalVarInitialized2; globalfoo ();'
290 ' p_A.field; p_A.staticfoo();'
291 ' new p_A(); new p_A.fromFoo(); new p_A().foo();}';
292 testDart2DartWithLibrary(mainSrc, librarySrc, 292 testDart2DartWithLibrary(mainSrc, librarySrc,
293 (String result) { Expect.equals(expectedResult, result); }); 293 (String result) { Expect.equals(expectedResult, result); });
294 } 294 }
295 295
296 testNoConflictSendsRename() { 296 testNoConflictSendsRename() {
297 // Various Send-s to current library and external library. Nothing should be 297 // Various Send-s to current library and external library. Nothing should be
298 // renamed here, only library prefixes must be cut. 298 // renamed here, only library prefixes must be cut.
299 var librarySrc = ''' 299 var librarySrc = '''
300 #library("mylib.dart"); 300 #library("mylib.dart");
301 301
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 testTopLevelField(); 560 testTopLevelField();
561 testSimpleObjectInstantiation(); 561 testSimpleObjectInstantiation();
562 testSimpleTopLevelClass(); 562 testSimpleTopLevelClass();
563 testClassWithSynthesizedConstructor(); 563 testClassWithSynthesizedConstructor();
564 testClassWithMethod(); 564 testClassWithMethod();
565 testExtendsImplements(); 565 testExtendsImplements();
566 testVariableDefinitions(); 566 testVariableDefinitions();
567 testGetSet(); 567 testGetSet();
568 testFactoryConstructor(); 568 testFactoryConstructor();
569 testAbstractClass(); 569 testAbstractClass();
570 //testConflictSendsRename(); 570 testConflictSendsRename();
571 testNoConflictSendsRename(); 571 testNoConflictSendsRename();
572 testConflictLibraryClassRename(); 572 testConflictLibraryClassRename();
573 testDefaultClassWithArgs(); 573 testDefaultClassWithArgs();
574 testClassExtendsWithArgs(); 574 testClassExtendsWithArgs();
575 testStaticInvocation(); 575 testStaticInvocation();
576 testLibraryGetSet(); 576 testLibraryGetSet();
577 testFieldTypeOutput(); 577 testFieldTypeOutput();
578 testDefaultClassNamePlaceholder(); 578 testDefaultClassNamePlaceholder();
579 testFactoryRename(); 579 testFactoryRename();
580 testTypeVariablesAreRenamed(); 580 testTypeVariablesAreRenamed();
581 } 581 }
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