Closed Bug 282339 Opened 21 years ago Closed 21 years ago

JS Tests for toLocaleString should be removed or changed to pass

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: mcsmurf, Assigned: bc)

Details

Attachments

(1 file)

The test found under http://lxr.mozilla.org/mozilla/source/js/tests/ecma_3/Date/15.9.5.5.js and the test under http://lxr.mozilla.org/mozilla/source/js/tests/ecma_3/Date/15.9.5.6.js use Date.parse in combination with parse toLocaleDate(String). This is not expected to work per Bug 282115 so either 1) these tests should be removed or 2) these tests should be changed, so they pass.
Assignee: general → moz
The tests have value for English locales. Shouldn't they be retained to at least allow us to test that English locales are working properly? Testers in non-English locales could simply add the tests to their "skip lists" when running the test driver. (See http://lxr.mozilla.org/mozilla/source/js/tests/README-jsDriver.html)
Attached patch Add some commentSplinter Review
Attachment #175445 - Flags: review?(pschwartau)
Comment on attachment 175445 [details] [diff] [review] Add some comment r=pschwartau Great idea to add these!
Attachment #175445 - Flags: review?(pschwartau) → review+
Checking in js/tests/ecma_3/Date/15.9.5.5.js; /cvsroot/mozilla/js/tests/ecma_3/Date/15.9.5.5.js,v <-- 15.9.5.5.js new revision: 1.3; previous revision: 1.2 done Checking in js/tests/ecma_3/Date/15.9.5.6.js; /cvsroot/mozilla/js/tests/ecma_3/Date/15.9.5.6.js,v <-- 15.9.5.6.js new revision: 1.3; previous revision: 1.2 done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Flags: testcase+
verified fixed except for the known crash on windows 1.9 ecma_3/Date/15.9.5.[56].js
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: