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

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

Issue 222203002: Update an out-of-date test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import 'dart:async'; 6 import 'dart:async';
7 import "package:async_helper/async_helper.dart"; 7 import "package:async_helper/async_helper.dart";
8 import 'parser_helper.dart'; 8 import 'parser_helper.dart';
9 import 'mock_compiler.dart'; 9 import 'mock_compiler.dart';
10 import '../../../sdk/lib/_internal/compiler/compiler.dart'; 10 import '../../../sdk/lib/_internal/compiler/compiler.dart';
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 a = getA(); 380 a = getA();
381 topfoo(); 381 topfoo();
382 mylib.topfoo(); 382 mylib.topfoo();
383 } 383 }
384 '''; 384 ''';
385 var expectedResult = 385 var expectedResult =
386 'topfoo(){}' 386 'topfoo(){}'
387 'class A{foo(){}}' 387 'class A{foo(){}}'
388 'A_topfoo(){var x=5;}' 388 'A_topfoo(){var x=5;}'
389 'class A_A{num foo(){}A_A.fromFoo(){}A myliba;List<A_A> mylist;}' 389 'class A_A{num foo(){}A_A.fromFoo(){}A myliba;List<A_A> mylist;}'
390 'A getA()=>null;' 390 'A getA(){}'
391 'main(){var a=new A();a.foo();var b=new A_A.fromFoo();b.foo();' 391 'main(){var a=new A();a.foo();var b=new A_A.fromFoo();b.foo();'
392 'var GREATVAR=b.myliba;b.mylist;a=getA();A_topfoo();topfoo();}'; 392 'var GREATVAR=b.myliba;b.mylist;a=getA();A_topfoo();topfoo();}';
393 testDart2DartWithLibrary(mainSrc, librarySrc, 393 testDart2DartWithLibrary(mainSrc, librarySrc,
394 continuation: (String result) { Expect.equals(expectedResult, result); }); 394 continuation: (String result) { Expect.equals(expectedResult, result); });
395 } 395 }
396 396
397 testClassExtendsWithArgs() { 397 testClassExtendsWithArgs() {
398 testDart2Dart('main(){new B<Object>();}' 398 testDart2Dart('main(){new B<Object>();}'
399 'class A<T extends Object>{}' 399 'class A<T extends Object>{}'
400 'class B<T extends Object> extends A<T>{}'); 400 'class B<T extends Object> extends A<T>{}');
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 testStaticAccessIoLib(); 731 testStaticAccessIoLib();
732 testLocalFunctionPlaceholder(); 732 testLocalFunctionPlaceholder();
733 testMinification(); 733 testMinification();
734 testClosureLocalsMinified(); 734 testClosureLocalsMinified();
735 testParametersMinified(); 735 testParametersMinified();
736 testDeclarationTypePlaceholders(); 736 testDeclarationTypePlaceholders();
737 testPlatformLibraryMemberNamesAreFixed(); 737 testPlatformLibraryMemberNamesAreFixed();
738 testConflictsWithCoreLib(); 738 testConflictsWithCoreLib();
739 testUnresolvedNamedConstructor(); 739 testUnresolvedNamedConstructor();
740 } 740 }
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