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

Side by Side Diff: pkg/analyzer2dart/test/end2end_data.dart

Issue 979813002: Support simple try in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /// Test data for the end2end test. 5 /// Test data for the end2end test.
6 library test.end2end.data; 6 library test.end2end.data;
7 7
8 import 'test_helper.dart'; 8 import 'test_helper.dart';
9 9
10 class TestSpec extends TestSpecBase { 10 class TestSpec extends TestSpecBase {
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 const Group('Instance method', const <TestSpec>[ 859 const Group('Instance method', const <TestSpec>[
860 const TestSpec(''' 860 const TestSpec('''
861 class C { 861 class C {
862 C() {} 862 C() {}
863 foo() {} 863 foo() {}
864 } 864 }
865 main() { 865 main() {
866 return new C().foo(); 866 return new C().foo();
867 } 867 }
868 '''), 868 '''),
869 ]), 869 ]),
870
871 const Group('Try-catch', const <TestSpec>[
872 const TestSpec('''
873 main() {
874 try {} catch (e) {}
875 }
876 ''',
877 // TODO(kmilikin): Remove the unused stack trace parameter.
Kevin Millikin (Google) 2015/03/04 14:45:54 kmillikin :)
Johnni Winther 2015/03/05 09:10:27 Done.
878 '''
879 main() {
880 try {} catch (e, v0) {}
881 }
882 '''),
883
884 const TestSpec('''
885 main() {
886 try {
887 return;
888 } catch (e) {}
889 }
890 ''',
891 // TODO(kmilikin): Remove the unused stack trace parameter and unneeded return
892 // statement(s).
893 '''
894 main() {
895 try {
896 return null;
897 } catch (e, v0) {
898 return null;
899 }
900 }
901 '''),
902 ]),
870 ]; 903 ];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698