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

Unified Diff: test/restartable_timer_test.dart

Issue 2161283002: Fix Dart 1.17 strong-mode warnings. (Closed) Base URL: git@github.com:dart-lang/async.git@master
Patch Set: Created 4 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 | « pubspec.yaml ('k') | test/result_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/restartable_timer_test.dart
diff --git a/test/restartable_timer_test.dart b/test/restartable_timer_test.dart
index 7dbbc2e416c23da8c203ece9a2bdc69bba5a9b3f..f1c53fc8246fe0269b8e293eeaafccfd2449fe13 100644
--- a/test/restartable_timer_test.dart
+++ b/test/restartable_timer_test.dart
@@ -10,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;
});
@@ -99,7 +99,7 @@ main() {
test("only runs the callback once if the timer isn't reset", () {
new FakeAsync().run((async) {
- var timer = new RestartableTimer(
+ new RestartableTimer(
new Duration(seconds: 5),
expectAsync(() {}, count: 1));
async.elapse(new Duration(seconds: 10));
« no previous file with comments | « pubspec.yaml ('k') | test/result_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698