| Index: runtime/observatory/tests/service/async_next_test.dart
|
| diff --git a/runtime/observatory/tests/service/async_next_test.dart b/runtime/observatory/tests/service/async_next_test.dart
|
| index 2f97370142a3af6cecedc4f6bd7a3b91ffbf9fb8..d656f7792c67492ac1759b7eb522e14daf3103e7 100644
|
| --- a/runtime/observatory/tests/service/async_next_test.dart
|
| +++ b/runtime/observatory/tests/service/async_next_test.dart
|
| @@ -3,19 +3,22 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
| // VMOptions=--error_on_bad_type --error_on_bad_override --verbose_debug
|
|
|
| -import 'dart:developer';
|
| -import 'dart:io';
|
| -
|
| +import 'package:observatory/service_io.dart';
|
| import 'service_test_common.dart';
|
| import 'test_helper.dart';
|
| +import 'dart:developer';
|
| +
|
| +const int LINE_A = 19;
|
| +const int LINE_B = 20;
|
| +const int LINE_C = 21;
|
|
|
| foo() async {}
|
|
|
| doAsync(stop) async {
|
| if (stop) debugger();
|
| - await foo(); // LINE_A.
|
| - await foo(); // LINE_B.
|
| - await foo(); // LINE_C.
|
| + await foo(); // Line A.
|
| + await foo(); // Line B.
|
| + await foo(); // Line C.
|
| return null;
|
| }
|
|
|
| @@ -26,19 +29,17 @@ testMain() {
|
| doAsync(true);
|
| }
|
|
|
| -final ScriptLineParser lineParser = new ScriptLineParser(Platform.script);
|
| -
|
| var tests = [
|
| hasStoppedAtBreakpoint,
|
| - stoppedAtLine(lineParser.lineFor('LINE_A')),
|
| + stoppedAtLine(LINE_A),
|
| stepOver, // foo()
|
| asyncNext,
|
| hasStoppedAtBreakpoint,
|
| - stoppedAtLine(lineParser.lineFor('LINE_B')),
|
| + stoppedAtLine(LINE_B),
|
| stepOver, // foo()
|
| asyncNext,
|
| hasStoppedAtBreakpoint,
|
| - stoppedAtLine(lineParser.lineFor('LINE_C')),
|
| + stoppedAtLine(LINE_C),
|
| resumeIsolate,
|
| ];
|
|
|
|
|