| Index: tests/compiler/dart2js_extra/timer_negative_test.dart
|
| diff --git a/tests/compiler/dart2js_extra/timer_negative_test.dart b/tests/compiler/dart2js_extra/timer_negative_test.dart
|
| index d446b8d0326913b3075e1d9b5cdb726713c5c84e..8d5c8509fc8320c18699ca7a57bd1d7fc8757907 100644
|
| --- a/tests/compiler/dart2js_extra/timer_negative_test.dart
|
| +++ b/tests/compiler/dart2js_extra/timer_negative_test.dart
|
| @@ -7,16 +7,17 @@ import 'dart:isolate';
|
| import 'async_helper.dart';
|
|
|
| void test(void onDone(bool success)) {
|
| + Duration ms = const Duration(milliseconds: 1);
|
| int expected = 4;
|
|
|
| - void timerCallback(timer) {
|
| + void timerCallback() {
|
| if (--expected == 0) onDone(false);
|
| }
|
|
|
| - new Timer(0, timerCallback);
|
| - new Timer(10, timerCallback);
|
| - new Timer(100, timerCallback);
|
| - new Timer(1000, timerCallback);
|
| + new Timer(ms * 0, timerCallback);
|
| + new Timer(ms * 10, timerCallback);
|
| + new Timer(ms * 100, timerCallback);
|
| + new Timer(ms * 1000, timerCallback);
|
| }
|
|
|
| main() {
|
|
|