OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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"; | |
6 | |
7 class MyException { } | 5 class MyException { } |
8 | 6 |
9 class MyException1 extends MyException { } | 7 class MyException1 extends MyException { } |
10 | 8 |
11 class MyException2 extends MyException { } | 9 class MyException2 extends MyException { } |
12 | 10 |
13 class TryCatchTest { | 11 class TryCatchTest { |
14 static void test1() { | 12 static void test1() { |
15 var foo = 0; | 13 var foo = 0; |
16 try { | 14 try { |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 test6(); | 144 test6(); |
147 test7(); | 145 test7(); |
148 test8(); | 146 test8(); |
149 test9(); | 147 test9(); |
150 } | 148 } |
151 } | 149 } |
152 | 150 |
153 main() { | 151 main() { |
154 TryCatchTest.testMain(); | 152 TryCatchTest.testMain(); |
155 } | 153 } |
OLD | NEW |