blob: eeb81e6732897c3f3dad9de8bfc5f4b55c9c8fad [file] [log] [blame]
// Copyright (c) 2015, 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_2/service_io.dart';
import 'package:test/test.dart';
import 'test_helper.dart';
import 'service_test_common.dart';
doThrow() {
throw "TheException"; // Line 13.
return "end of doThrow";
var tests = <IsolateTest>[
(Isolate isolate) async {
print("We stopped!");
var stack = await isolate.getStack();
expect(stack['frames'][0], equals('doThrow'));
main(args) => runIsolateTestsSynchronous(args, tests,
pause_on_unhandled_exceptions: true, testeeConcurrent: doThrow);