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

Unified Diff: tests/isolate/issue_21398_parent_isolate2_test.dart

Issue 2770063002: Revert "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
« no previous file with comments | « tests/isolate/isolate_import_test.dart ('k') | tests/isolate/message3_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27d49b9856d48de5f274c0279e31a58979d266dd..f67ae10b88c13927ebc3a76a00694d6de2cb114e 100644
--- a/tests/isolate/issue_21398_parent_isolate2_test.dart
+++ b/tests/isolate/issue_21398_parent_isolate2_test.dart
@@ -31,20 +31,25 @@ 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() {
« no previous file with comments | « tests/isolate/isolate_import_test.dart ('k') | tests/isolate/message3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698