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

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

Issue 2940523003: Cleaned analysis result for observatory (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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 4 // VMOptions=--error_on_bad_type --error_on_bad_override --verbose_debug
5 5
6 import 'package:observatory/service_io.dart';
7 import 'service_test_common.dart'; 6 import 'service_test_common.dart';
8 import 'test_helper.dart'; 7 import 'test_helper.dart';
9 import 'dart:developer'; 8 import 'dart:developer';
10 9
11 const int LINE_A = 19; 10 const int LINE_A = 18;
12 const int LINE_B = 20; 11 const int LINE_B = 19;
13 const int LINE_C = 21; 12 const int LINE_C = 20;
14 13
15 foo() async {} 14 foo() async {}
16 15
17 doAsync(stop) async { 16 doAsync(stop) async {
18 if (stop) debugger(); 17 if (stop) debugger();
19 await foo(); // Line A. 18 await foo(); // Line A.
20 await foo(); // Line B. 19 await foo(); // Line B.
21 await foo(); // Line C. 20 await foo(); // Line C.
22 return null; 21 return null;
23 } 22 }
(...skipping 13 matching lines...) Expand all
37 hasStoppedAtBreakpoint, 36 hasStoppedAtBreakpoint,
38 stoppedAtLine(LINE_B), 37 stoppedAtLine(LINE_B),
39 stepOver, // foo() 38 stepOver, // foo()
40 asyncNext, 39 asyncNext,
41 hasStoppedAtBreakpoint, 40 hasStoppedAtBreakpoint,
42 stoppedAtLine(LINE_C), 41 stoppedAtLine(LINE_C),
43 resumeIsolate, 42 resumeIsolate,
44 ]; 43 ];
45 44
46 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain); 45 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698