| Index: runtime/observatory/tests/service/get_isolate_after_sync_error_test.dart
|
| diff --git a/runtime/observatory/tests/service/pause_on_unhandled_exceptions_test.dart b/runtime/observatory/tests/service/get_isolate_after_sync_error_test.dart
|
| similarity index 60%
|
| copy from runtime/observatory/tests/service/pause_on_unhandled_exceptions_test.dart
|
| copy to runtime/observatory/tests/service/get_isolate_after_sync_error_test.dart
|
| index 2e09acc5d5073a9917f10376beb66dcb1f886db9..bf2684aac4ac0d6f1c91f218ed69de0490a30c2a 100644
|
| --- a/runtime/observatory/tests/service/pause_on_unhandled_exceptions_test.dart
|
| +++ b/runtime/observatory/tests/service/get_isolate_after_sync_error_test.dart
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
| // VMOptions=--error_on_bad_type --error_on_bad_override
|
| @@ -9,21 +9,20 @@ import 'test_helper.dart';
|
| import 'service_test_common.dart';
|
|
|
| doThrow() {
|
| - throw "TheException"; // Line 13.
|
| - return "end of doThrow";
|
| + throw "oh no"; // Line 13.
|
| }
|
|
|
| var tests = [
|
| - hasStoppedWithUnhandledException,
|
| + hasStoppedAtExit,
|
|
|
| (Isolate isolate) async {
|
| - print("We stoppped!");
|
| - var stack = await isolate.getStack();
|
| - expect(stack['frames'][0].function.name, equals('doThrow'));
|
| + await isolate.reload();
|
| + expect(isolate.error, isNotNull);
|
| + expect(isolate.error.message.contains('oh no'), isTrue);
|
| }
|
| ];
|
|
|
| main(args) => runIsolateTestsSynchronous(args,
|
| tests,
|
| - pause_on_unhandled_exceptions: true,
|
| - testeeConcurrent: doThrow);
|
| + pause_on_exit: true,
|
| + testeeConcurrent: doThrow);
|
|
|