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

Unified Diff: runtime/observatory/tests/service/async_generator_breakpoint_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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/tests/service/async_generator_breakpoint_test.dart
diff --git a/runtime/observatory/tests/service/async_generator_breakpoint_test.dart b/runtime/observatory/tests/service/async_generator_breakpoint_test.dart
index aef2e8e3e973041575eed36740845609c2fe90da..dc89c7eeebea5a4c0bfd61de70f5e5b8e047c4df 100644
--- a/runtime/observatory/tests/service/async_generator_breakpoint_test.dart
+++ b/runtime/observatory/tests/service/async_generator_breakpoint_test.dart
@@ -7,16 +7,23 @@ import 'package:observatory/service_io.dart';
import 'package:unittest/unittest.dart';
import 'test_helper.dart';
-printSync() { // Line 10
+printSync() {
+ // Line 10
print('sync');
}
-printAsync() async { // Line 13
+
+printAsync() async {
+ // Line 13
print('async');
}
-printAsyncStar() async* { // Line 16
+
+printAsyncStar() async* {
+ // Line 16
print('async*');
}
-printSyncStar() sync* { // Line 19
+
+printSyncStar() sync* {
+ // Line 19
print('sync*');
}
@@ -27,14 +34,14 @@ testeeDo() {
// the breakpoints because we need the event loop to remain
// operational for the async bodies to run.
print('testee waiting');
- while(!testerReady);
+ while (!testerReady);
printSync();
var future = printAsync();
var stream = printAsyncStar();
var iterator = printSyncStar();
- print('middle'); // Line 37.
+ print('middle'); // Line 37.
future.then((v) => print(v));
stream.toList();
@@ -64,10 +71,9 @@ testAsync(Isolate isolate) async {
var hits = [];
- isolate.rootLibrary.evaluate('testerReady = true;')
- .then((Instance result) {
- expect(result.valueAsString, equals('true'));
- });
+ isolate.rootLibrary.evaluate('testerReady = true;').then((Instance result) {
+ expect(result.valueAsString, equals('true'));
+ });
var stream = await isolate.vm.getEventStream(VM.kDebugStream);
await for (ServiceEvent event in stream) {
« no previous file with comments | « runtime/observatory/tests/service/allocations_test.dart ('k') | runtime/observatory/tests/service/async_next_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698