Chromium Code Reviews| Index: tests/isolate/timer_cancel_test.dart |
| =================================================================== |
| --- tests/isolate/timer_cancel_test.dart (revision 14114) |
| +++ tests/isolate/timer_cancel_test.dart (working copy) |
| @@ -23,7 +23,7 @@ |
| void repeatHandler(Timer timer) { |
| repeatTimer++; |
| timer.cancel(); |
| - expect(repeatTimer == 1); |
| + expect(repeatTimer, 1); |
|
Jennifer Messerly
2012/10/26 02:57:05
equals(1)? or do primitives match themselves?
gram
2012/10/26 22:26:27
Yes, if the second argument is not a matcher, it w
|
| } |
| cancelTimer = new Timer(1000, expectAsync1(unreachable, count: 0)); |