OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 // VMOptions=--error_on_bad_type --error_on_bad_override --verbose_debug | |
5 | |
6 import 'dart:developer'; | |
7 import 'package:observatory/models.dart' as M; | |
8 import 'package:observatory/service_io.dart'; | |
9 import 'package:unittest/unittest.dart'; | |
10 import 'service_test_common.dart'; | |
11 import 'test_helper.dart'; | |
12 | |
13 const LINE_A = 19; | |
14 const LINE_B = 20; | |
15 const LINE_C = 25; | |
16 const LINE_D = 26; | |
17 | |
18 helper() async { | |
19 print('helper'); // LINE_A. | |
20 print('foobar'); // LINE_B. | |
21 } | |
22 | |
23 testMain() { | |
24 debugger(); | |
25 print('mmmmm'); // LINE_C. | |
26 helper(); // LINE_D. | |
27 } | |
rmacnak
2017/03/23 20:20:18
Add an extra statement after helper() to check the
Cutch
2017/03/23 21:24:50
Done.
| |
28 | |
29 var tests = [ | |
30 hasStoppedAtBreakpoint, | |
31 stoppedAtLine(LINE_C), | |
32 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.
| |
33 hasStoppedAtBreakpoint, | |
34 stoppedAtLine(LINE_D), | |
35 stepInto, | |
36 hasStoppedAtBreakpoint, | |
37 stoppedAtLine(LINE_A), | |
38 stepInto, | |
rmacnak
2017/03/23 20:20:17
stepOver
Cutch
2017/03/23 21:24:50
Done.
| |
39 hasStoppedAtBreakpoint, | |
40 stoppedAtLine(LINE_B), | |
41 ]; | |
42 | |
43 main(args) => | |
44 runIsolateTestsSynchronous(args, tests, testeeConcurrent: testMain); | |
OLD | NEW |