Commit 421ee46b authored by Thiago Macieira's avatar Thiago Macieira Committed by The Qt Project
Browse files

Autotest: Fix unexpected rounding of floating point in date tests


QString("new Date(%0)").arg(1380318500 * 1000.0) expands to "new
Date(1.38032e+12)". That's an unnecessary rounding and cuts off
interesting bits out of the date.

It took me quite a while debugging QScriptEngine trying to find out
why the time_t and the JS Date internal numbers were different.

Change-Id: Id880f3f11edd0af07e1726eac0242d4a9625c368
Reviewed-by: default avatarJohn Layt <jlayt@kde.org>
Showing with 2 additions and 2 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment