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

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

Issue 2751423005: Run dartfmt on all files under runtime. (Closed)
Patch Set: Run dartfmt on all files under runtime. 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 'package:observatory/service_io.dart'; 6 import 'package:observatory/service_io.dart';
7 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
8 import 'test_helper.dart'; 8 import 'test_helper.dart';
9 import 'service_test_common.dart'; 9 import 'service_test_common.dart';
10 import 'dart:async'; 10 import 'dart:async';
11 11
12 const int LINE_A = 16; 12 const int LINE_A = 16;
13 const int LINE_B = 17; 13 const int LINE_B = 17;
14 14
15 testMain() { 15 testMain() {
16 var foo; // line A 16 var foo; // line A
17 foo = 42; // line B 17 foo = 42; // line B
18 print(foo); 18 print(foo);
19 } 19 }
20 20
21 var tests = [ 21 var tests = [
22 hasPausedAtStart, 22 hasPausedAtStart,
23 23
24 // Add breakpoints at line 11 and line 12. 24 // Add breakpoints at line 11 and line 12.
25 (Isolate isolate) async { 25 (Isolate isolate) async {
26 var rootLib = isolate.rootLibrary; 26 var rootLib = isolate.rootLibrary;
27 await rootLib.load(); 27 await rootLib.load();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 completer.complete(null); 64 completer.complete(null);
65 } 65 }
66 } 66 }
67 }); 67 });
68 isolate.resume(); 68 isolate.resume();
69 await completer.future; 69 await completer.future;
70 }, 70 },
71 ]; 71 ];
72 72
73 main(args) => runIsolateTests(args, tests, 73 main(args) => runIsolateTests(args, tests,
74 testeeConcurrent: testMain, 74 testeeConcurrent: testMain, pause_on_start: true);
75 pause_on_start: true);
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/isolate_lifecycle_test.dart ('k') | runtime/observatory/tests/service/issue_27238_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698