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

Unified Diff: tests/lib_strong/async/timer_isActive_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_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();

Powered by Google App Engine
This is Rietveld 408576698