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

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: Addressed Johnni's comments 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // Top-level get/set. 213 // Top-level get/set.
214 testDart2Dart('set foo(arg){}get foo{return 5;}main(){foo;foo=5;}'); 214 testDart2Dart('set foo(arg){}get foo{return 5;}main(){foo;foo=5;}');
215 // Field get/set. 215 // Field get/set.
216 testDart2Dart('main(){var a=new A();a.foo;a.foo=5;}' 216 testDart2Dart('main(){var a=new A();a.foo;a.foo=5;}'
217 'class A{set foo(a){}get foo{return 5;}}'); 217 'class A{set foo(a){}get foo{return 5;}}');
218 // Typed get/set. 218 // Typed get/set.
219 testDart2Dart('String get foo{return "a";}main(){foo;}'); 219 testDart2Dart('String get foo{return "a";}main(){foo;}');
220 } 220 }
221 221
222 testAbstractClass() { 222 testAbstractClass() {
223 testDart2Dart('main(){A.foo;}abstract class A{final static num foo=0;}'); 223 testDart2Dart('main(){A.foo;}abstract class A{static final num foo=0;}');
224 } 224 }
225 225
226 testConflictSendsRename() { 226 testConflictSendsRename() {
227 // Various Send-s to current library and external library. Verify that 227 // Various Send-s to current library and external library. Verify that
228 // everything is renamed correctly in conflicting class names and global 228 // everything is renamed correctly in conflicting class names and global
229 // functions. 229 // functions.
230 var librarySrc = ''' 230 var librarySrc = '''
231 library mylib; 231 library mylib;
232 232
233 globalfoo() {} 233 globalfoo() {}
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 testStaticAccessIoLib(); 751 testStaticAccessIoLib();
752 testLocalFunctionPlaceholder(); 752 testLocalFunctionPlaceholder();
753 testMinification(); 753 testMinification();
754 testClosureLocalsMinified(); 754 testClosureLocalsMinified();
755 testParametersMinified(); 755 testParametersMinified();
756 testDeclarationTypePlaceholders(); 756 testDeclarationTypePlaceholders();
757 testPlatformLibraryMemberNamesAreFixed(); 757 testPlatformLibraryMemberNamesAreFixed();
758 testConflictsWithCoreLib(); 758 testConflictsWithCoreLib();
759 testUnresolvedNamedConstructor(); 759 testUnresolvedNamedConstructor();
760 } 760 }
OLDNEW
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/warnings.dart ('k') | dart/tests/compiler/dart2js/minify_many_locals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698