diff options
author | Janne Anttila <janne.anttila@digia.com> | 2009-09-28 07:49:12 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2009-09-28 07:50:07 (GMT) |
commit | 60bc4d037a6b4b667f08f1d36e868b454723909f (patch) | |
tree | a96370191eaad32e5c3d17884c6ce6e7e49356fe /tests/auto/qeasingcurve | |
parent | dbfff9e8edb8353ca5698281dd3937d491fbc593 (diff) | |
download | Qt-60bc4d037a6b4b667f08f1d36e868b454723909f.zip Qt-60bc4d037a6b4b667f08f1d36e868b454723909f.tar.gz Qt-60bc4d037a6b4b667f08f1d36e868b454723909f.tar.bz2 |
Fixed qeasingcurve autotest compilation for other than WINCE platforms.
Reviewed-by: TrustMe
Diffstat (limited to 'tests/auto/qeasingcurve')
-rw-r--r-- | tests/auto/qeasingcurve/tst_qeasingcurve.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qeasingcurve/tst_qeasingcurve.cpp b/tests/auto/qeasingcurve/tst_qeasingcurve.cpp index 8e0d37d..52ffcb5 100644 --- a/tests/auto/qeasingcurve/tst_qeasingcurve.cpp +++ b/tests/auto/qeasingcurve/tst_qeasingcurve.cpp @@ -417,18 +417,18 @@ void tst_QEasingCurve::valueForProgress() // the least significant digit it is still subject to rounding errors qreal error = easeConv - ex; + qreal errorbound = 0.00001; #ifdef Q_OS_WINCE // exception values for WINCE(this test should be rewritten, as it only freezes the status quo of QEasingCurve // The failing (2) values are explicitly excepted here: // The source values for the comparison table should remain untruncated double and the // error bound checking function dynamic. Also the source values should come from a "trusted" source and not // from QEasingCurve itself. - qreal errorbound = 0.00001; if ((type == int(QEasingCurve::InOutBounce) && (i == 8 || i == 6) ) || (type == int(QEasingCurve::OutExpo) && i == 2)) - errorbound = 0.0002; -#endif // accept the potential rounding error in the least significant digit - - QVERIFY(error <= errorbound ); + errorbound = 0.0002; +#endif + // accept the potential rounding error in the least significant digit + QVERIFY(error <= errorbound ); } #endif } |