Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: runtime/observatory/tests/service/async_single_step_out_test.dart

Issue 2934973002: Address observatory analysis issues. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 // VMOptions=--error_on_bad_type --error_on_bad_override --verbose_debug --asyn c_debugger 4 // VMOptions=--error_on_bad_type --error_on_bad_override --verbose_debug --asyn c_debugger
5 5
6 import 'dart:developer'; 6 import 'dart:developer';
7 import 'package:observatory/models.dart' as M; 7
8 import 'package:observatory/service_io.dart';
9 import 'package:unittest/unittest.dart';
10 import 'service_test_common.dart'; 8 import 'service_test_common.dart';
11 import 'test_helper.dart'; 9 import 'test_helper.dart';
12 10
13 const LINE_A = 20; 11 const LINE_A = 18;
14 const LINE_B = 21; 12 const LINE_B = 19;
15 const LINE_C = 26; 13 const LINE_C = 24;
16 const LINE_D = 27; 14 const LINE_D = 25;
17 const LINE_E = 28; 15 const LINE_E = 26;
18 16
19 helper() async { 17 helper() async {
20 print('helper'); // LINE_A. 18 print('helper'); // LINE_A.
21 return null; // LINE_B. 19 return null; // LINE_B.
22 } 20 }
23 21
24 testMain() async { 22 testMain() async {
25 debugger(); 23 debugger();
26 print('mmmmm'); // LINE_C. 24 print('mmmmm'); // LINE_C.
27 await helper(); // LINE_D. 25 await helper(); // LINE_D.
(...skipping 12 matching lines...) Expand all
40 stepOver, // print. 38 stepOver, // print.
41 hasStoppedAtBreakpoint, 39 hasStoppedAtBreakpoint,
42 stoppedAtLine(LINE_B), // return null. 40 stoppedAtLine(LINE_B), // return null.
43 stepInto, // exit helper via a single step. 41 stepInto, // exit helper via a single step.
44 hasStoppedAtBreakpoint, 42 hasStoppedAtBreakpoint,
45 stoppedAtLine(LINE_E), // arrive after the await. 43 stoppedAtLine(LINE_E), // arrive after the await.
46 resumeIsolate 44 resumeIsolate
47 ]; 45 ];
48 46
49 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain); 47 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698