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

Unified Diff: tests/lib/async/schedule_microtask_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/schedule_microtask_test.dart
diff --git a/tests/lib/async/schedule_microtask_test.dart b/tests/lib/async/schedule_microtask_test.dart
index 681f160af82efe70fd0c7978d7be6c1c668116f9..8e12f4e4a5e689dea7d2304d497de5fccd3aae95 100644
--- a/tests/lib/async/schedule_microtask_test.dart
+++ b/tests/lib/async/schedule_microtask_test.dart
@@ -6,7 +6,6 @@ import 'package:async_helper/async_helper.dart';
import "package:expect/expect.dart";
import 'dart:async';
-
Future testOneScheduleMicrotask() {
var completer = new Completer();
Timer.run(() {
@@ -15,7 +14,6 @@ Future testOneScheduleMicrotask() {
return completer.future;
}
-
Future testMultipleScheduleMicrotask() {
var completer = new Completer();
Timer.run(() {
@@ -24,14 +22,14 @@ Future testMultipleScheduleMicrotask() {
for (int i = 0; i < TOTAL; i++) {
scheduleMicrotask(() {
done++;
- if (done == TOTAL) completer.complete();;
+ if (done == TOTAL) completer.complete();
+ ;
});
}
});
return completer.future;
}
-
Future testScheduleMicrotaskThenTimer() {
var completer = new Completer();
Timer.run(() {
@@ -48,7 +46,6 @@ Future testScheduleMicrotaskThenTimer() {
return completer.future;
}
-
Future testTimerThenScheduleMicrotask() {
var completer = new Completer();
Timer.run(() {
@@ -65,7 +62,6 @@ Future testTimerThenScheduleMicrotask() {
return completer.future;
}
-
Future testTimerThenScheduleMicrotaskChain() {
var completer = new Completer();
Timer.run(() {
@@ -81,19 +77,18 @@ Future testTimerThenScheduleMicrotaskChain() {
scheduleMicrotask(scheduleMicrotaskCallback);
}
}
+
scheduleMicrotask(scheduleMicrotaskCallback);
});
return completer.future;
}
-
main() {
asyncStart();
testOneScheduleMicrotask()
- .then((_) => testMultipleScheduleMicrotask())
- .then((_) => testScheduleMicrotaskThenTimer())
- .then((_) => testTimerThenScheduleMicrotask())
- .then((_) => testTimerThenScheduleMicrotaskChain())
- .then((_) => asyncEnd());
+ .then((_) => testMultipleScheduleMicrotask())
+ .then((_) => testScheduleMicrotaskThenTimer())
+ .then((_) => testTimerThenScheduleMicrotask())
+ .then((_) => testTimerThenScheduleMicrotaskChain())
+ .then((_) => asyncEnd());
}
-

Powered by Google App Engine
This is Rietveld 408576698