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

Unified Diff: tests/isolate/issue_21398_child_isolate11.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/issue_21398_child_isolate11.dart
diff --git a/tests/isolate/issue_21398_child_isolate11.dart b/tests/isolate/issue_21398_child_isolate11.dart
index f1224ddbfe1c5e545383180b739ab8e52a22a848..fd19d60e53e4b46d843798566991ee2021c1f3c0 100644
--- a/tests/isolate/issue_21398_child_isolate11.dart
+++ b/tests/isolate/issue_21398_child_isolate11.dart
@@ -13,16 +13,13 @@ main(List<String> args, message) {
var receivePort = new ReceivePort();
var sendPort = message;
sendPort.send(receivePort.sendPort);
- receivePort.listen(
- (msg) {
- Expect.isTrue(msg is SendPort);
- try {
- msg.send(new FromChildIsolate());
- } catch(error) {
- Expect.isTrue(error is ArgumentError);
- msg.send("Invalid Argument(s).");
- }
- },
- onError: (e) => print('$e')
- );
+ receivePort.listen((msg) {
+ Expect.isTrue(msg is SendPort);
+ try {
+ msg.send(new FromChildIsolate());
+ } catch (error) {
+ Expect.isTrue(error is ArgumentError);
+ msg.send("Invalid Argument(s).");
+ }
+ }, onError: (e) => print('$e'));
}

Powered by Google App Engine
This is Rietveld 408576698