blob: 7165a8c681dea947eba100f20131e7dabb8d0f2a [file] [log] [blame]
// 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.
import 'package:observatory/service_io.dart';
import 'package:test/test.dart';
import 'test_helper.dart';
import 'service_test_common.dart';
doThrow() {
throw "oh no"; // Line 13.
}
var tests = <IsolateTest>[
hasStoppedAtExit,
(Isolate isolate) async {
await isolate.reload();
expect(isolate.error, isNotNull);
expect(isolate.error!.message!.contains('oh no'), isTrue);
}
];
main(args) => runIsolateTestsSynchronous(args, tests,
pause_on_exit: true, testeeConcurrent: doThrow);