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

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

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (Closed)
Patch Set: Created 3 years, 9 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'; 6 import 'package:observatory/service_io.dart';
7 import 'service_test_common.dart'; 7 import 'service_test_common.dart';
8 import 'test_helper.dart'; 8 import 'test_helper.dart';
9 import 'dart:developer'; 9 import 'dart:developer';
10 10
11 const int LINE_A = 19; 11 const int LINE_A = 19;
12 const int LINE_B = 20; 12 const int LINE_B = 20;
13 const int LINE_C = 21; 13 const int LINE_C = 21;
14 14
15 foo() async { } 15 foo() async {}
16 16
17 doAsync(stop) async { 17 doAsync(stop) async {
18 if (stop) debugger(); 18 if (stop) debugger();
19 await foo(); // Line A. 19 await foo(); // Line A.
20 await foo(); // Line B. 20 await foo(); // Line B.
21 await foo(); // Line C. 21 await foo(); // Line C.
22 return null; 22 return null;
23 } 23 }
24 24
25 testMain() { 25 testMain() {
(...skipping 16 matching lines...) Expand all
42 hasStoppedAtBreakpoint, 42 hasStoppedAtBreakpoint,
43 stoppedAtLine(LINE_B), 43 stoppedAtLine(LINE_B),
44 stepOver, // foo() 44 stepOver, // foo()
45 asyncNext, 45 asyncNext,
46 hasStoppedAtBreakpoint, 46 hasStoppedAtBreakpoint,
47 stoppedAtLine(LINE_C), 47 stoppedAtLine(LINE_C),
48 resumeIsolate, 48 resumeIsolate,
49 ]; 49 ];
50 50
51 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain); 51 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698