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

Unified Diff: packages/quiver/test/async/countdown_timer_test.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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
« no previous file with comments | « packages/quiver/test/async/concat_test.dart ('k') | packages/quiver/test/async/enumerate_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/quiver/test/async/countdown_timer_test.dart
diff --git a/packages/quiver/test/async/countdown_timer_test.dart b/packages/quiver/test/async/countdown_timer_test.dart
index ea6b8f693cc04e2342f9b1c975b6a42207a2558a..500dd9944c1a8ab769353f1ad425757aefaac93b 100644
--- a/packages/quiver/test/async/countdown_timer_test.dart
+++ b/packages/quiver/test/async/countdown_timer_test.dart
@@ -28,9 +28,10 @@ main() {
var stopwatch = new FakeStopwatch(
() => 1000 * clock.now().millisecondsSinceEpoch, 1000000);
- var timings = new CountdownTimer(
- new Duration(milliseconds: 500), new Duration(milliseconds: 100),
- stopwatch: stopwatch).map((c) => c.remaining.inMilliseconds);
+ var timings = new CountdownTimer(const Duration(milliseconds: 500),
+ const Duration(milliseconds: 100),
+ stopwatch: stopwatch)
+ .map((c) => c.remaining.inMilliseconds);
List<int> result;
timings.toList().then((list) {
@@ -41,5 +42,11 @@ main() {
expect(result, [400, 300, 200, 100, 0]);
});
});
+
+ test('should set increment to the initialized value', () {
+ var timer = new CountdownTimer(
+ const Duration(milliseconds: 321), const Duration(milliseconds: 123));
+ expect(timer.increment, const Duration(milliseconds: 123));
+ });
});
}
« no previous file with comments | « packages/quiver/test/async/concat_test.dart ('k') | packages/quiver/test/async/enumerate_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698