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

Unified Diff: tests/isolate/exit_at_spawn_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/exit_at_spawn_test.dart
diff --git a/tests/isolate/exit_at_spawn_test.dart b/tests/isolate/exit_at_spawn_test.dart
index 355c449607ed720188e22978c42c07fa9f29ba95..c2db8cbacc348d30b045946cb4c0c3d981fd3910 100644
--- a/tests/isolate/exit_at_spawn_test.dart
+++ b/tests/isolate/exit_at_spawn_test.dart
@@ -14,15 +14,15 @@ isomain(args) {}
// Isolate exiting after running microtasks.
isomain2(args) {
- scheduleMicrotask((){});
+ scheduleMicrotask(() {});
}
// Isolate exiting after running timers.
isomain3(args) {
- new Timer(Duration.ZERO, (){});
+ new Timer(Duration.ZERO, () {});
}
-main(){
+main() {
asyncStart();
test(isomain);
@@ -42,9 +42,8 @@ void test(mainFunction) {
asyncEnd();
};
- Isolate.spawn(mainFunction,
- null,
- // Setup handler as part of spawn.
- errorsAreFatal: false,
- onExit: exitPort.sendPort);
+ Isolate.spawn(mainFunction, null,
+ // Setup handler as part of spawn.
+ errorsAreFatal: false,
+ onExit: exitPort.sendPort);
}

Powered by Google App Engine
This is Rietveld 408576698