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

Side by Side Diff: runtime/observatory/tests/service/reload_sources_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 4 // VMOptions=--error_on_bad_type --error_on_bad_override
5 5
6 import 'test_helper.dart'; 6 import 'test_helper.dart';
7 import 'dart:developer'; 7 import 'dart:developer';
8 import 'service_test_common.dart'; 8 import 'service_test_common.dart';
9 9
10 testMain() { 10 testMain() {
11 debugger(); // Stop here. 11 debugger(); // Stop here.
12 print('1'); 12 print('1');
13 while (true) { 13 while (true) {}
14 }
15 } 14 }
16 15
17 var tests = [ 16 var tests = [
18 // Stopped at 'debugger' statement. 17 // Stopped at 'debugger' statement.
19 hasStoppedAtBreakpoint, 18 hasStoppedAtBreakpoint,
20 // Reload sources and request to pause post reload. The pause request will be 19 // Reload sources and request to pause post reload. The pause request will be
21 // ignored because we are already paused at a breakpoint. 20 // ignored because we are already paused at a breakpoint.
22 reloadSources(true), 21 reloadSources(true),
23 // Ensure that we are still stopped at a breakpoint. 22 // Ensure that we are still stopped at a breakpoint.
24 hasStoppedAtBreakpoint, 23 hasStoppedAtBreakpoint,
25 // Resume the isolate into the while loop. 24 // Resume the isolate into the while loop.
26 resumeIsolate, 25 resumeIsolate,
27 // Reload sources and request to pause post reload. The pause request will 26 // Reload sources and request to pause post reload. The pause request will
28 // be respected because we are not already paused. 27 // be respected because we are not already paused.
29 reloadSources(true), 28 reloadSources(true),
30 // Ensure that we are paused post reload request. 29 // Ensure that we are paused post reload request.
31 hasStoppedPostRequest, 30 hasStoppedPostRequest,
32 // Resume the isolate. 31 // Resume the isolate.
33 resumeIsolate, 32 resumeIsolate,
34 // Verify that it is running. 33 // Verify that it is running.
35 isolateIsRunning, 34 isolateIsRunning,
36 // Reload sources and do not request to pause post reload. 35 // Reload sources and do not request to pause post reload.
37 reloadSources(false), 36 reloadSources(false),
38 // Verify that it is running. 37 // Verify that it is running.
39 isolateIsRunning, 38 isolateIsRunning,
40 ]; 39 ];
41 40
42 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain); 41 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698