Rhino and MozillaSuiteTest

17 views
Skip to first unread message

tntim96

unread,
Sep 8, 2011, 1:30:44 AM9/8/11
to mozilla-rhino
Hi,

I've just checked out Rhino from Git and tried to run the tests. I get
132 failures in MozillaSuiteTest, everything else OK. Looks like the
tests are all to do with dates - I'm in "UTC+10:00" time-zone (that
shouldn't affect things).

Anyone else getting something like this?
In "js\tests\ecma\Date\15.9.3.8-1.js": FAILED! new Date(0).getHours()
= 10 expected: 11 FAILED! new Date(1).getHours() = 10 expected: 11
FAILED! new Date(true).getHours() = 10 expected: 11 FAILED! new
Date(false).getHours() = 10 expected: 11 FAILED! new Date("Thu Jan 01
1970 10:00:00 GMT+1000 (EST)" ).getHours() = 10 expected: 11

junit.framework.AssertionFailedError: In "js\tests\ecma\Date
\15.9.3.8-1.js":
FAILED! new Date(0).getHours() = 10 expected: 11
FAILED! new Date(1).getHours() = 10 expected: 11
FAILED! new Date(true).getHours() = 10 expected: 11
FAILED! new Date(false).getHours() = 10 expected: 11
FAILED! new Date("Thu Jan 01 1970 10:00:00 GMT+1000
(EST)" ).getHours() = 10 expected: 11

at org.mozilla.javascript.tests.MozillaSuiteTest
$JunitStatus.failed(MozillaSuiteTest.java:151)
at org.mozilla.javascript.drivers.ShellTest.run(ShellTest.java:393)
at
org.mozilla.javascript.tests.MozillaSuiteTest.runMozillaTest(MozillaSuiteTest.java:
184)


PS - I posted a minor fix at https://bugzilla.mozilla.org/show_bug.cgi?id=684131

James Cook

unread,
Sep 8, 2011, 9:09:37 AM9/8/11
to mozill...@googlegroups.com
I haven't actually looked at those tests, but perhaps they are not taking DST into consideration?

-- jim
Reply all
Reply to author
Forward
0 new messages