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

Unified Diff: runtime/observatory/tests/service/async_generator_breakpoint_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 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..7cc77808e8775d2d3d672cd225b3c59370741526 100644
--- a/runtime/observatory/tests/service/async_generator_breakpoint_test.dart
+++ b/runtime/observatory/tests/service/async_generator_breakpoint_test.dart
@@ -7,17 +7,20 @@ import 'package:observatory/service_io.dart';
import 'package:unittest/unittest.dart';
import 'test_helper.dart';
-printSync() { // Line 10
- print('sync');
+printSync() {
+ print('sync'); // Line 11
}
-printAsync() async { // Line 13
- print('async');
+
+printAsync() async {
+ print('async'); // Line 15
}
-printAsyncStar() async* { // Line 16
- print('async*');
+
+printAsyncStar() async* {
+ print('async*'); // Line 19
}
-printSyncStar() sync* { // Line 19
- print('sync*');
+
+printSyncStar() sync* {
+ print('sync*'); // Line 23
}
var testerReady = false;
@@ -27,14 +30,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 40
future.then((v) => print(v));
stream.toList();
@@ -45,29 +48,28 @@ testAsync(Isolate isolate) async {
await isolate.rootLibrary.load();
var script = isolate.rootLibrary.scripts[0];
- var bp1 = await isolate.addBreakpoint(script, 10);
+ var bp1 = await isolate.addBreakpoint(script, 11);
expect(bp1, isNotNull);
expect(bp1 is Breakpoint, isTrue);
- var bp2 = await isolate.addBreakpoint(script, 13);
+ var bp2 = await isolate.addBreakpoint(script, 15);
expect(bp2, isNotNull);
expect(bp2 is Breakpoint, isTrue);
- var bp3 = await isolate.addBreakpoint(script, 16);
+ var bp3 = await isolate.addBreakpoint(script, 19);
expect(bp3, isNotNull);
expect(bp3 is Breakpoint, isTrue);
- var bp4 = await isolate.addBreakpoint(script, 19);
+ var bp4 = await isolate.addBreakpoint(script, 23);
expect(bp4, isNotNull);
expect(bp4 is Breakpoint, isTrue);
- var bp5 = await isolate.addBreakpoint(script, 37);
+ var bp5 = await isolate.addBreakpoint(script, 40);
print("BP5 - $bp5");
expect(bp5, isNotNull);
expect(bp5 is Breakpoint, isTrue);
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