| OLD | NEW |
| 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 Loading... |
| 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(kmillikin): Remove the unused stack trace parameter. |
| 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(kmillikin): 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 ]; |
| OLD | NEW |