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

Unified Diff: packages/async/test/restartable_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/async/test/null_stream_sink_test.dart ('k') | packages/async/test/result_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/async/test/restartable_timer_test.dart
diff --git a/packages/async/test/restartable_timer_test.dart b/packages/async/test/restartable_timer_test.dart
index 6732b813c7f400c1d7c38b55456a4c3c0b80288c..4f59f62c16e3df9294eaebea03dd7e66981f9c7a 100644
--- a/packages/async/test/restartable_timer_test.dart
+++ b/packages/async/test/restartable_timer_test.dart
@@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'dart:async';
-
import 'package:async/async.dart';
import 'package:fake_async/fake_async.dart';
import 'package:test/test.dart';
@@ -12,7 +10,7 @@ main() {
test("runs the callback once the duration has elapsed", () {
new FakeAsync().run((async) {
var fired = false;
- var timer = new RestartableTimer(new Duration(seconds: 5), () {
+ new RestartableTimer(new Duration(seconds: 5), () {
fired = true;
});
@@ -101,9 +99,8 @@ main() {
test("only runs the callback once if the timer isn't reset", () {
new FakeAsync().run((async) {
- var timer = new RestartableTimer(
- new Duration(seconds: 5),
- expectAsync(() {}, count: 1));
+ new RestartableTimer(
+ new Duration(seconds: 5), expectAsync0(() {}, count: 1));
async.elapse(new Duration(seconds: 10));
});
});
« no previous file with comments | « packages/async/test/null_stream_sink_test.dart ('k') | packages/async/test/result_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698