| Index: pkg/stack_trace/test/chain_test.dart
|
| diff --git a/pkg/stack_trace/test/chain_test.dart b/pkg/stack_trace/test/chain_test.dart
|
| index 3347deb2b52da0233b146dd7a21b3b3afdf1a883..beb4721cf558d25e0a6fdb15856da74cf8844ae7 100644
|
| --- a/pkg/stack_trace/test/chain_test.dart
|
| +++ b/pkg/stack_trace/test/chain_test.dart
|
| @@ -14,6 +14,15 @@ import 'utils.dart';
|
|
|
| void main() {
|
| group('capture() with onError catches exceptions', () {
|
| + test('thrown synchronously', () {
|
| + return captureFuture(() => throw 'error')
|
| + .then((chain) {
|
| + expect(chain.traces, hasLength(1));
|
| + expect(chain.traces.single.frames.first,
|
| + frameMember(startsWith('main')));
|
| + });
|
| + });
|
| +
|
| test('thrown in a microtask', () {
|
| return captureFuture(() => inMicrotask(() => throw 'error'))
|
| .then((chain) {
|
|
|