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

Unified Diff: tests/lib/async/async_await_zones_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/lib/async/async_await_zones_test.dart
diff --git a/tests/lib/async/async_await_zones_test.dart b/tests/lib/async/async_await_zones_test.dart
index 210b05dee778929c0d7d3f3757afd3146e927214..cb7011caf896156b5b440a14b9644682a335bab0 100644
--- a/tests/lib/async/async_await_zones_test.dart
+++ b/tests/lib/async/async_await_zones_test.dart
@@ -23,7 +23,6 @@ bar() async* {
while (true) yield await gee(i++);
}
-
awaitForTest() async {
var sum = 0;
await for (var x in bar().take(100)) {
@@ -103,6 +102,7 @@ registerCallback(Zone self, ZoneDelegate parent, Zone zone, f) {
return f();
});
}
+
registerUnaryCallback(Zone self, ZoneDelegate parent, Zone zone, f) {
var oldDepth = depth;
increaseDepth();
@@ -111,6 +111,7 @@ registerUnaryCallback(Zone self, ZoneDelegate parent, Zone zone, f) {
return f(x);
});
}
+
registerBinaryCallback(Zone self, ZoneDelegate parent, Zone zone, f) {
var oldDepth = depth;
increaseDepth();
@@ -135,8 +136,7 @@ main() {
registerCallback: registerCallback,
registerUnaryCallback: registerUnaryCallback,
registerBinaryCallback: registerBinaryCallback,
- scheduleMicrotask: sm
- );
+ scheduleMicrotask: sm);
var future = runZoned(runTests, zoneSpecification: desc);
future.then((_) => asyncEnd());
}

Powered by Google App Engine
This is Rietveld 408576698