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

Unified Diff: tests/isolate/raw_port_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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: tests/isolate/raw_port_test.dart
diff --git a/tests/isolate/raw_port_test.dart b/tests/isolate/raw_port_test.dart
index 1b88949db797fb26891d5dd60a413bd85f57c620..5b946cb4f471fea42793a8cb9fc5c15304fea1e4 100644
--- a/tests/isolate/raw_port_test.dart
+++ b/tests/isolate/raw_port_test.dart
@@ -5,11 +5,11 @@
// Test RawReceivePort.
library raw_port_test;
+
import 'dart:isolate';
import 'package:unittest/unittest.dart';
import 'remote_unittest_helper.dart';
-
void remote(SendPort port) {
port.send("reply");
}
@@ -58,12 +58,13 @@ main([args, port]) {
Isolate.spawn(remote, rawPort.sendPort);
Isolate.spawn(remote, port.sendPort);
int ctr = 2;
- port.listen(expectAsync((v) {
- expect(v, "reply");
- ctr--;
- if (ctr == 0) port.close();
- }, count: 2),
- onDone: expectAsync((){}));
+ port.listen(
+ expectAsync((v) {
+ expect(v, "reply");
+ ctr--;
+ if (ctr == 0) port.close();
+ }, count: 2),
+ onDone: expectAsync(() {}));
});
});
}

Powered by Google App Engine
This is Rietveld 408576698