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

Side by Side Diff: runtime/observatory/tests/service/async_single_step_exception_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) 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:async';
7 import 'dart:developer'; 6 import 'dart:developer';
8 import 'package:observatory/models.dart' as M;
9 import 'package:observatory/service_io.dart';
10 import 'package:unittest/unittest.dart';
11 import 'service_test_common.dart'; 7 import 'service_test_common.dart';
12 import 'test_helper.dart'; 8 import 'test_helper.dart';
13 9
14 const LINE_A = 23; 10 const LINE_A = 19;
15 const LINE_B = 24; 11 const LINE_B = 20;
16 const LINE_C = 30; 12 const LINE_C = 26;
17 const LINE_D = 32; 13 const LINE_D = 28;
18 const LINE_E = 35; 14 const LINE_E = 31;
19 const LINE_F = 38; 15 const LINE_F = 34;
20 const LINE_G = 40; 16 const LINE_G = 36;
21 17
22 helper() async { 18 helper() async {
23 print('helper'); // LINE_A. 19 print('helper'); // LINE_A.
24 throw 'a'; // LINE_B. 20 throw 'a'; // LINE_B.
25 return null; 21 return null;
26 } 22 }
27 23
28 testMain() async { 24 testMain() async {
29 debugger(); 25 debugger();
30 print('mmmmm'); // LINE_C. 26 print('mmmmm'); // LINE_C.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 stepOver, 60 stepOver,
65 hasStoppedAtBreakpoint, 61 hasStoppedAtBreakpoint,
66 stoppedAtLine(LINE_F), // print(foo) 62 stoppedAtLine(LINE_F), // print(foo)
67 stepOver, 63 stepOver,
68 hasStoppedAtBreakpoint, 64 hasStoppedAtBreakpoint,
69 stoppedAtLine(LINE_G), // print(z) 65 stoppedAtLine(LINE_G), // print(z)
70 resumeIsolate 66 resumeIsolate
71 ]; 67 ];
72 68
73 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain); 69 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698