| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // VMOptions=--compile_all --error_on_bad_type --error_on_bad_override | 4 // VMOptions=--compile_all --error_on_bad_type --error_on_bad_override |
| 5 | 5 |
| 6 import 'package:observatory/service_io.dart'; | 6 import 'package:observatory/service_io.dart'; |
| 7 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
| 8 import 'test_helper.dart'; | 8 import 'test_helper.dart'; |
| 9 import 'dart:async'; | 9 import 'dart:async'; |
| 10 import 'dart:developer'; | |
| 11 | 10 |
| 12 doThrow() { | 11 doThrow() { |
| 13 throw "TheException"; // Line 13. | 12 throw "TheException"; // Line 13. |
| 14 return "end of doThrow"; | 13 return "end of doThrow"; |
| 15 } | 14 } |
| 16 | 15 |
| 17 doCaught() { | 16 doCaught() { |
| 18 try { | 17 try { |
| 19 doThrow(); | 18 doThrow(); |
| 20 } catch (e) {} | 19 } catch (e) {} |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 102 |
| 104 await test("none", "doCaught()", false, true); | 103 await test("none", "doCaught()", false, true); |
| 105 await test("none", "doUncaught()", false, false); | 104 await test("none", "doUncaught()", false, false); |
| 106 | 105 |
| 107 subscription.cancel(); | 106 subscription.cancel(); |
| 108 }, | 107 }, |
| 109 | 108 |
| 110 ]; | 109 ]; |
| 111 | 110 |
| 112 main(args) => runIsolateTests(args, tests); | 111 main(args) => runIsolateTests(args, tests); |
| OLD | NEW |