Index: tests/lib_strong/async/timer_isActive_test.dart |
diff --git a/tests/lib_strong/async/timer_isActive_test.dart b/tests/lib_strong/async/timer_isActive_test.dart |
index 7a7b8f208644fc59f6875bd8de9935a729b39cac..b116d7f3ad293c3e180406858b054c449ffa8fb5 100644 |
--- a/tests/lib_strong/async/timer_isActive_test.dart |
+++ b/tests/lib_strong/async/timer_isActive_test.dart |
@@ -6,12 +6,11 @@ import 'dart:async'; |
import 'package:unittest/unittest.dart'; |
main() { |
- |
test("timer isActive test", () { |
Timer t; |
t = new Timer(const Duration(seconds: 1), |
- expectAsync(() => expect(t.isActive, equals(false)))); |
+ expectAsync(() => expect(t.isActive, equals(false)))); |
expect(t.isActive, equals(true)); |
}); |
@@ -28,14 +27,14 @@ main() { |
i++; |
} |
- t = new Timer.periodic(new Duration(milliseconds: 1), |
- expectAsync(checkActive, count: 3)); |
+ t = new Timer.periodic( |
+ new Duration(milliseconds: 1), expectAsync(checkActive, count: 3)); |
expect(t.isActive, equals(true)); |
}); |
test("timer cancel test", () { |
- Timer timer = new Timer(const Duration(seconds: 15), |
- () => fail("Should not be reached.")); |
+ Timer timer = new Timer( |
+ const Duration(seconds: 15), () => fail("Should not be reached.")); |
Timer.run(expectAsync(() { |
expect(timer.isActive, equals(true)); |
timer.cancel(); |