Bug 77290 - [Windows, WinCairo] Specify exponent in text output to improve platform consistency
Summary: [Windows, WinCairo] Specify exponent in text output to improve platform consi...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-28 15:06 PST by Brent Fulgham
Modified: 2013-02-14 22:48 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 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.
Comment 1 Adam Roben (:aroben) 2012-01-30 10:39:30 PST
Great idea!