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

Unified Diff: tests/lib_strong/async/timer_regress22626_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_strong/async/timer_regress22626_test.dart
diff --git a/tests/lib_strong/async/timer_regress22626_test.dart b/tests/lib_strong/async/timer_regress22626_test.dart
index 810be7cb656cec3c3dd6ee0c5f44eea57b00e4b5..d3404339fe64c1d9e0ab3f4b143b7963ab26f022 100644
--- a/tests/lib_strong/async/timer_regress22626_test.dart
+++ b/tests/lib_strong/async/timer_regress22626_test.dart
@@ -17,17 +17,17 @@ var rng = new Random(1234);
void test(int delay, int delta) {
var t0 = new Timer(new Duration(milliseconds: delay + delta),
- () => Expect.fail("should have been cancelled by now"));
+ () => Expect.fail("should have been cancelled by now"));
new Timer(Duration.ZERO, () => t0.cancel());
- new Timer(Duration.ZERO,
- () => new Timer(new Duration(milliseconds: delay),
- () {
- if (--countdown == 0) {
- print("done");
- } else {
- test(delay, max(0, delta + rng.nextInt(2) - 1));
- }
- }));
+ new Timer(
+ Duration.ZERO,
+ () => new Timer(new Duration(milliseconds: delay), () {
+ if (--countdown == 0) {
+ print("done");
+ } else {
+ test(delay, max(0, delta + rng.nextInt(2) - 1));
+ }
+ }));
}
void main() {

Powered by Google App Engine
This is Rietveld 408576698