blob: e28dbe2e46bde94e373332b2e547498dc1ce6d68 [file] [log] [blame]
// 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:test/test.dart';
import 'package:vm_service/vm_service.dart';
import 'common/service_test_common.dart';
import 'common/test_helper.dart';
// AUTOGENERATED START
//
// Update these constants by running:
//
// dart pkg/vm_service/test/update_line_numbers.dart <test.dart>
//
const LINE_A = 21;
// AUTOGENERATED END
void code() {
final _ = {}; // LINE_A
}
final recordedStops = <String>[];
final tests = <IsolateTest>[
hasPausedAtStart,
markDartColonLibrariesDebuggable,
setBreakpointAtLine(LINE_A),
runStepIntoThroughProgramRecordingStops(recordedStops),
(VmService service, IsolateRef isolateRef) async {
expect(recordedStops.length, greaterThan(20));
}
];
void main([args = const <String>[]]) => runIsolateTestsSynchronous(
args,
tests,
'step_test.dart',
testeeConcurrent: code,
pauseOnStart: true,
pauseOnExit: true,
);