Fix bug in tst_QTimeLine::duration().
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 16 Apr 2012 13:11:41 +0000 (23:11 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 17 Apr 2012 06:06:47 +0000 (08:06 +0200)
commit5192b06ccb3a015a224c8a5efb23d5c8029b1156
tree4a4ee196df2f0c67c3e2b8a6e2da56ff3fc68b75
parent4e282e3ea23972e8a28915cd57ede214d89d840d
Fix bug in tst_QTimeLine::duration().

QTimeLine::currentTime() is an integer in the range [0..duration], not a
float in the range [0.0..1.0].  The aim of the test appears to be to
verify that currentTime() is at least 90% of the way to duration() when
the timeline is almost due to finish, so verify that and give the
corresponding 10% tolerance on reaching the end state.

Change-Id: I38646947c3b9189a4e8e91a450c6071430ddc66a
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/corelib/tools/qtimeline/tst_qtimeline.cpp