Bug 77290
| Summary: | [Windows, WinCairo] Specify exponent in text output to improve platform consistency | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | aroben, roger_fong |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Brent Fulgham
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)
Great idea!