archives

« Bugzilla Issues Index

#2503 — Invalid test? S15.9.3.1_A5_T4


DESCRIPTION
Date tests using static values for verification are failing erroneously outside of PST time zone.

Date constructor uses local time so generating a date and comparing to ticks off of epoch returns a different value in differing timezones. You must explicitly specify UTC in the constructor to get a consistent result, which the current test code for all 15.9.3.1_A5 does not do.

------------------
TEST: TestCases/ch15/15.9/15.9.3/S15.9.3.1_A5_T4.js
SOURCE: http://hg.ecmascript.org/tests/test262/file/tip/test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T4.js
TEST SUITE DATE: 2013-06-13
PLATFORM: Mozilla/5.0 (Linux; U; en-us; KFSOWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.13 Safari/535.19 Silk-Accelerated=true
ERROR: Error: Unexpected exception, "Uncaught Test262 Error: #1: Incorrect value of Date" was thrown.


See also bug 293


I also observe these failures, one timezone to the east of Pacific time.


Add see also bug 293[1] and bug 330[2] ; note that bug 330 includes a candidate fix which forces the use of UTC+8, which should yield correct results in all timezones and year-round.

[1]: https://bugs.ecmascript.org/show_bug.cgi?id=293
[2]: https://bugs.ecmascript.org/show_bug.cgi?id=330