blob: 15249053207ba52b5ed1c8d22661c04b907b4aff [file]
// Copyright (c) 2023, 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:vm_service/vm_service.dart';
import 'common/service_test_common.dart';
import 'evaluate_in_async_activation_lib.dart' as testee_lib;
void main([args = const <String>[]]) =>
IsolateTestHarness('evaluate_in_async_activation_lib.dart', args)
.hasStoppedAtBreakpoint()
.stoppedAtLine('LINE_A')
.addCustomTest((VmService service, IsolateRef isolateRef) async {
final isolateId = isolateRef.id!;
await evaluateInFrameAndExpect(service, isolateId, 'x', '3');
})
.resumeIsolate()
.hasStoppedAtBreakpoint()
.stoppedAtLine('LINE_B')
.addCustomTest((VmService service, IsolateRef isolateRef) async {
final isolateId = isolateRef.id!;
await evaluateInFrameAndExpect(service, isolateId, 'z', '7');
})
.resumeIsolate()
.run(testeeMain: testee_lib.main);