| Index: runtime/observatory/tests/service/pause_on_unhandled_async_exceptions_test.dart
|
| diff --git a/runtime/observatory/tests/service/pause_on_unhandled_async_exceptions_test.dart b/runtime/observatory/tests/service/pause_on_unhandled_async_exceptions_test.dart
|
| index af6c1766960627e7955edda65b7bc0dabefb285b..2f4354e4dccbf950d836fe9010635a185915d8c4 100644
|
| --- a/runtime/observatory/tests/service/pause_on_unhandled_async_exceptions_test.dart
|
| +++ b/runtime/observatory/tests/service/pause_on_unhandled_async_exceptions_test.dart
|
| @@ -9,9 +9,11 @@ import 'package:unittest/unittest.dart';
|
| import 'test_helper.dart';
|
| import 'service_test_common.dart';
|
|
|
| -const LINE_A = 34;
|
| +const LINE_A = 37;
|
|
|
| -class Foo {}
|
| +class Foo {
|
| +
|
| +}
|
|
|
| doThrow() {
|
| throw "TheException"; // Line 13.
|
| @@ -27,17 +29,21 @@ testeeMain() async {
|
| // caught.
|
| try {
|
| await asyncThrower();
|
| - } catch (e) {}
|
| + } catch (e) {
|
| + }
|
|
|
| // uncaught.
|
| try {
|
| - await asyncThrower(); // LINE_A.
|
| - } on double catch (e) {}
|
| - } on Foo catch (e) {}
|
| + await asyncThrower(); // LINE_A.
|
| + } on double catch (e) {
|
| + }
|
| + } on Foo catch (e) {
|
| + }
|
| }
|
|
|
| var tests = [
|
| hasStoppedWithUnhandledException,
|
| +
|
| (Isolate isolate) async {
|
| print("We stoppped!");
|
| var stack = await isolate.getStack();
|
| @@ -48,10 +54,12 @@ var tests = [
|
| expect(asyncStack[2].kind, equals(M.FrameKind.asyncSuspensionMarker));
|
| expect(asyncStack[3].toString(), contains('testeeMain'));
|
| // We've stopped at LINE_A.
|
| - expect(
|
| - await asyncStack[3].location.toUserString(), contains('.dart:$LINE_A'));
|
| + expect(await asyncStack[3].location.toUserString(),
|
| + contains('.dart:$LINE_A'));
|
| }
|
| ];
|
|
|
| -main(args) => runIsolateTests(args, tests,
|
| - pause_on_unhandled_exceptions: true, testeeConcurrent: testeeMain);
|
| +main(args) => runIsolateTests(args,
|
| + tests,
|
| + pause_on_unhandled_exceptions: true,
|
| + testeeConcurrent: testeeMain);
|
|
|