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

Unified Diff: runtime/observatory/tests/service/isolate_lifecycle_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/isolate_lifecycle_test.dart
diff --git a/runtime/observatory/tests/service/isolate_lifecycle_test.dart b/runtime/observatory/tests/service/isolate_lifecycle_test.dart
index 992b10062ddd6de049fe16a9b7b72b9692f481ba..eb8b018e9ff5aad56e1805410931a01a563cf57d 100644
--- a/runtime/observatory/tests/service/isolate_lifecycle_test.dart
+++ b/runtime/observatory/tests/service/isolate_lifecycle_test.dart
@@ -16,8 +16,7 @@ final spawnCount = 4;
final resumeCount = spawnCount ~/ 2;
final isolates = [];
-void spawnEntry(int i) {
-}
+void spawnEntry(int i) {}
Future during() async {
debugger();
@@ -44,7 +43,6 @@ var tests = [
expect(vm.isolates.length, 1);
await hasStoppedAtBreakpoint(vm.isolates[0]);
},
-
(VM vm) async {
Completer completer = new Completer();
var stream = await vm.getEventStream(VM.kIsolateStream);
@@ -70,14 +68,12 @@ var tests = [
expect(runnableCount, spawnCount);
expect(vm.isolates.length, spawnCount + 1);
},
-
(VM vm) async {
// Load each isolate.
for (var isolate in vm.isolates) {
await isolate.load();
}
},
-
(VM vm) async {
Completer completer = new Completer();
var stream = await vm.getEventStream(VM.kDebugStream);
@@ -95,8 +91,6 @@ var tests = [
}
expect(numPaused(vm), spawnCount + 1);
},
-
-
(VM vm) async {
var resumedReceived = 0;
Completer completer = new Completer();
@@ -122,19 +116,17 @@ var tests = [
try {
resumesIssued++;
await isolate.resume();
- } catch(_) {}
+ } catch (_) {}
if (resumesIssued == resumeCount) {
break;
}
}
await completer.future;
},
-
(VM vm) async {
expect(numPaused(vm), spawnCount + 1 - resumeCount);
},
];
-main(args) async => runVMTests(args, tests,
- testeeConcurrent: during,
- pause_on_exit: true);
+main(args) async =>
+ runVMTests(args, tests, testeeConcurrent: during, pause_on_exit: true);

Powered by Google App Engine
This is Rietveld 408576698