Chromium Code Reviews| Index: runtime/observatory/tests/service/async_single_step_into_test.dart |
| diff --git a/runtime/observatory/tests/service/async_single_step_into_test.dart b/runtime/observatory/tests/service/async_single_step_into_test.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..47a0e2f84737b9ccd93496f27d06fdc7b05f247e |
| --- /dev/null |
| +++ b/runtime/observatory/tests/service/async_single_step_into_test.dart |
| @@ -0,0 +1,44 @@ |
| +// Copyright (c) 2017, 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. |
| +// VMOptions=--error_on_bad_type --error_on_bad_override --verbose_debug |
| + |
| +import 'dart:developer'; |
| +import 'package:observatory/models.dart' as M; |
| +import 'package:observatory/service_io.dart'; |
| +import 'package:unittest/unittest.dart'; |
| +import 'service_test_common.dart'; |
| +import 'test_helper.dart'; |
| + |
| +const LINE_A = 19; |
| +const LINE_B = 20; |
| +const LINE_C = 25; |
| +const LINE_D = 26; |
| + |
| +helper() async { |
| + print('helper'); // LINE_A. |
| + print('foobar'); // LINE_B. |
| +} |
| + |
| +testMain() { |
| + debugger(); |
| + print('mmmmm'); // LINE_C. |
| + helper(); // LINE_D. |
| +} |
|
rmacnak
2017/03/23 20:20:18
Add an extra statement after helper() to check the
Cutch
2017/03/23 21:24:50
Done.
|
| + |
| +var tests = [ |
| + hasStoppedAtBreakpoint, |
| + stoppedAtLine(LINE_C), |
| + stepInto, |
|
rmacnak
2017/03/23 20:20:18
Consider stepOver for the prints to make this test
Cutch
2017/03/23 21:24:50
Done.
|
| + hasStoppedAtBreakpoint, |
| + stoppedAtLine(LINE_D), |
| + stepInto, |
| + hasStoppedAtBreakpoint, |
| + stoppedAtLine(LINE_A), |
| + stepInto, |
|
rmacnak
2017/03/23 20:20:17
stepOver
Cutch
2017/03/23 21:24:50
Done.
|
| + hasStoppedAtBreakpoint, |
| + stoppedAtLine(LINE_B), |
| +]; |
| + |
| +main(args) => |
| + runIsolateTestsSynchronous(args, tests, testeeConcurrent: testMain); |