| Index: runtime/observatory/tests/service/step_into_async_no_await_test.dart
|
| diff --git a/runtime/observatory/tests/service/async_next_test.dart b/runtime/observatory/tests/service/step_into_async_no_await_test.dart
|
| similarity index 52%
|
| copy from runtime/observatory/tests/service/async_next_test.dart
|
| copy to runtime/observatory/tests/service/step_into_async_no_await_test.dart
|
| index 9e298f705485752323bb15a70ff64c923ac75a47..f2a8a23837ed9e4541ba755a5630180f4ceab914 100644
|
| --- a/runtime/observatory/tests/service/async_next_test.dart
|
| +++ b/runtime/observatory/tests/service/step_into_async_no_await_test.dart
|
| @@ -7,36 +7,26 @@ import 'package:observatory/service_io.dart';
|
| import 'test_helper.dart';
|
| import 'dart:developer';
|
|
|
| -foo() async { }
|
| -
|
| -doAsync(stop) async {
|
| - if (stop) debugger();
|
| - await foo(); // Line 14.
|
| - await foo(); // Line 15.
|
| - await foo(); // Line 16.
|
| - return null;
|
| +// :async_op will not be captured in this function because it never needs to
|
| +// reschedule it.
|
| +asyncWithoutAwait() async {
|
| + print("asyncWithoutAwait");
|
| }
|
|
|
| testMain() {
|
| - // With two runs of doAsync floating around, async step should only cause
|
| - // us to stop in the run we started in.
|
| - doAsync(false);
|
| - doAsync(true);
|
| -}
|
| -
|
| -asyncNext(Isolate isolate) async {
|
| - return isolate.asyncStepOver()[Isolate.kSecondResume];
|
| + debugger();
|
| + asyncWithoutAwait();
|
| }
|
|
|
| var tests = [
|
| hasStoppedAtBreakpoint,
|
| - stoppedAtLine(14),
|
| - asyncNext,
|
| - hasStoppedAtBreakpoint,
|
| - stoppedAtLine(15),
|
| - asyncNext,
|
| + stoppedAtLine(18),
|
| + (isolate) => isolate.stepInto(),
|
| hasStoppedAtBreakpoint,
|
| - stoppedAtLine(16),
|
| + (isolate) => isolate.getStack(), // Should not crash.
|
| + // TODO(rmacnak): stoppedAtLine(12)
|
| + // This doesn't happen because asyncWithoutAwait is marked undebuggable.
|
| + // Probably needs to change to support async-step-into.
|
| resumeIsolate,
|
| ];
|
|
|
|
|