| 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));
|
| + });
|
| });
|
| }
|
|
|