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

Unified Diff: tests/isolate/issue_21398_parent_isolate2_test.dart

Issue 2768073002: Format all multitests (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: tests/isolate/issue_21398_parent_isolate2_test.dart
diff --git a/tests/isolate/issue_21398_parent_isolate2_test.dart b/tests/isolate/issue_21398_parent_isolate2_test.dart
index f67ae10b88c13927ebc3a76a00694d6de2cb114e..27d49b9856d48de5f274c0279e31a58979d266dd 100644
--- a/tests/isolate/issue_21398_parent_isolate2_test.dart
+++ b/tests/isolate/issue_21398_parent_isolate2_test.dart
@@ -31,25 +31,20 @@ void helperFunction() {
asyncStart();
// Spawn an isolate using spawnFunction.
- Isolate.spawn(funcChild, [receivePort.sendPort]).then(
- (isolate) {
- receivePort.listen(
- (msg) {
- // We don't expect to receive any valid messages.
- Expect.fail("We don't expect to receive any valid messages");
- receivePort.close();
- asyncEnd();
- },
- onError: (e) {
- // We don't expect to receive any error messages, per spec listen
- // does not receive an error object.
- Expect.fail("We don't expect to receive any error messages");
- receivePort.close();
- asyncEnd();
- }
- );
- }
- );
+ Isolate.spawn(funcChild, [receivePort.sendPort]).then((isolate) {
+ receivePort.listen((msg) {
+ // We don't expect to receive any valid messages.
+ Expect.fail("We don't expect to receive any valid messages");
+ receivePort.close();
+ asyncEnd();
+ }, onError: (e) {
+ // We don't expect to receive any error messages, per spec listen
+ // does not receive an error object.
+ Expect.fail("We don't expect to receive any error messages");
+ receivePort.close();
+ asyncEnd();
+ });
+ });
}
main() {

Powered by Google App Engine
This is Rietveld 408576698