+
+void StopWatchTestCase::RestartBug()
+{
+ wxStopWatch sw;
+ sw.Pause();
+
+ // Calling Start() should resume the stopwatch if it was paused.
+ static const int offset = 5000;
+ sw.Start(offset);
+ wxMilliSleep(sleepTime);
+
+ long t = sw.Time();
+ WX_ASSERT_MESSAGE
+ (
+ ("Actual time value is %ld", t),
+ t > offset + sleepTime - tolerance &&
+ t < offset + sleepTime + tolerance
+ );
+}