WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
77290
[Windows, WinCairo] Specify exponent in text output to improve platform consistency
https://bugs.webkit.org/show_bug.cgi?id=77290
Summary
[Windows, WinCairo] Specify exponent in text output to improve platform consi...
Brent Fulgham
Reported
2012-01-28 15:06:41 PST
Floating point values are printed with leading zeros on Windows, while on the Mac there is no leading value. E.g., the value "1.23e-15" on the Mac platform will be printed as "1.23e-015" under Windows. This causes a number of SVG tests under Windows (and therefore, WinCairo) to fail to match the equivalent result on the Mac. For example, "svg/css/composite-shadow-example.html" will show this behavior. As documented on MSDN (
http://msdn.microsoft.com/en-us/library/0fatw238(v=vs.80).aspx
), we can force the Windows test harness to output using the proper format using: _set_output_format(_TWO_DIGIT_EXPONENT); Using this change will allow us to have more sharing between the Win/WinCairo and Mac results. It looks like there are a number of Windows results that were rebaselined just because of this small formatting problem.
Attachments
Add attachment
proposed patch, testcase, etc.
Adam Roben (:aroben)
Comment 1
2012-01-30 10:39:30 PST
Great idea!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug