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

Unified Diff: tests/lib_strong/async/catch_errors.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/lib_strong/async/catch_errors.dart
diff --git a/tests/lib_strong/async/catch_errors.dart b/tests/lib_strong/async/catch_errors.dart
index c84c9aadc39558aab6db0084d79f59d147fb39e7..925ce2c2f269a3b1c3d3eb74acc86e0119078adc 100644
--- a/tests/lib_strong/async/catch_errors.dart
+++ b/tests/lib_strong/async/catch_errors.dart
@@ -19,18 +19,17 @@ Stream catchErrors(void body()) {
}
runZonedScheduleMicrotask(body(),
- { void onScheduleMicrotask(void callback()),
- Function onError }) {
+ {void onScheduleMicrotask(void callback()), Function onError}) {
if (onScheduleMicrotask == null) {
return runZoned(body, onError: onError);
}
HandleUncaughtErrorHandler errorHandler;
if (onError != null) {
- errorHandler = (Zone self, ZoneDelegate parent, Zone zone,
- error, StackTrace stackTrace) {
+ errorHandler = (Zone self, ZoneDelegate parent, Zone zone, error,
+ StackTrace stackTrace) {
try {
return self.parent.runUnary(onError, error);
- } catch(e, s) {
+ } catch (e, s) {
if (identical(e, error)) {
return parent.handleUncaughtError(zone, error, stackTrace);
} else {
@@ -45,9 +44,8 @@ runZonedScheduleMicrotask(body(),
self.parent.runUnary(onScheduleMicrotask, () => zone.runGuarded(f));
};
}
- ZoneSpecification specification =
- new ZoneSpecification(handleUncaughtError: errorHandler,
- scheduleMicrotask: asyncHandler);
+ ZoneSpecification specification = new ZoneSpecification(
+ handleUncaughtError: errorHandler, scheduleMicrotask: asyncHandler);
Zone zone = Zone.current.fork(specification: specification);
if (onError != null) {
return zone.runGuarded(body);

Powered by Google App Engine
This is Rietveld 408576698