allow testing at 11:13. Old code failed because the text actually says "11:13 AM"
commit33280899fb97545fad86e028bf2c39aca95cb34d
authorMichael Zanetti <michael.zanetti@canonical.com>
dateWed 21 Aug 2013, 11:29 (13 years ago)
parent2563253
tests/qmltests/Greeter/tst_Clock.qml+1−1
@@ -70,7 +70,7 @@ Rectangle {
7070 compare(clock.__timerRunning, true, "Timer should be running")
7171 wait(0) // spin event loop to trigger the timer
7272 verify(dateLabel.text !== dateString)
73− if (timeLabel.text == "11:13") wait(60000) // next test will fail at 11:13, wait 1 minute
73+ if (timeLabel.text.indexOf("11:13") != -1) wait(60000) // next test will fail at 11:13, wait 1 minute
7474 verify(timeLabel.text !== timeString)
7575 }
7676