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

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

Issue 324293002: Improve parser error recovery. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r37359. Created 6 years, 6 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
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 'mock_compiler.dart'; 8 import 'mock_compiler.dart';
9 import '../../../sdk/lib/_internal/compiler/compiler.dart'; 9 import '../../../sdk/lib/_internal/compiler/compiler.dart';
10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' as l eg; 10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' as l eg;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // Top-level get/set. 201 // Top-level get/set.
202 testDart2Dart('set foo(arg){}get foo{return 5;}main(){foo;foo=5;}'); 202 testDart2Dart('set foo(arg){}get foo{return 5;}main(){foo;foo=5;}');
203 // Field get/set. 203 // Field get/set.
204 testDart2Dart('main(){var a=new A();a.foo;a.foo=5;}' 204 testDart2Dart('main(){var a=new A();a.foo;a.foo=5;}'
205 'class A{set foo(a){}get foo{return 5;}}'); 205 'class A{set foo(a){}get foo{return 5;}}');
206 // Typed get/set. 206 // Typed get/set.
207 testDart2Dart('String get foo{return "a";}main(){foo;}'); 207 testDart2Dart('String get foo{return "a";}main(){foo;}');
208 } 208 }
209 209
210 testAbstractClass() { 210 testAbstractClass() {
211 testDart2Dart('main(){A.foo;}abstract class A{final static num foo=0;}'); 211 testDart2Dart('main(){A.foo;}abstract class A{static final num foo=0;}');
212 } 212 }
213 213
214 testConflictSendsRename() { 214 testConflictSendsRename() {
215 // Various Send-s to current library and external library. Verify that 215 // Various Send-s to current library and external library. Verify that
216 // everything is renamed correctly in conflicting class names and global 216 // everything is renamed correctly in conflicting class names and global
217 // functions. 217 // functions.
218 var librarySrc = ''' 218 var librarySrc = '''
219 library mylib; 219 library mylib;
220 220
221 globalfoo() {} 221 globalfoo() {}
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 testStaticAccessIoLib(); 739 testStaticAccessIoLib();
740 testLocalFunctionPlaceholder(); 740 testLocalFunctionPlaceholder();
741 testMinification(); 741 testMinification();
742 testClosureLocalsMinified(); 742 testClosureLocalsMinified();
743 testParametersMinified(); 743 testParametersMinified();
744 testDeclarationTypePlaceholders(); 744 testDeclarationTypePlaceholders();
745 testPlatformLibraryMemberNamesAreFixed(); 745 testPlatformLibraryMemberNamesAreFixed();
746 testConflictsWithCoreLib(); 746 testConflictsWithCoreLib();
747 testUnresolvedNamedConstructor(); 747 testUnresolvedNamedConstructor();
748 } 748 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698