Closed Bug 181909 Opened 22 years ago Closed 22 years ago

some regression tests for Error invalid

Categories

(Rhino Graveyard :: Core, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: joerg.schaible, Assigned: pschwartau)

Details

Attachments

(2 files, 1 obsolete file)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461) Build Identifier: Rhino 1.5 release 4 0000 00 00 (in progress) The regression tests js/tests/ecma_3/Exceptions/15.11.4.4-1.js and js/tests/ecma_3/Exceptions/regress-181654.js fail to test the meggase argument. The validating comparison just checks for the content of Error.message in Error.toString without checking whether the given message of the constructor is contained in the message. Reproducible: Always Steps to Reproduce: Actual Results: js/tests/ecma_3/Exceptions/regress-181654.js has a bug, that results in a missing/empty Error.message member, but the test succeeds. Expected Results: The test should have failed. two patches will be attached.
Corrected another (copy & paste) bug in regression test.
Attachment #107387 - Attachment is obsolete: true
Assigning to self -
Assignee: nboyd → pschwartau
Marking FIXED. Jörg: thank you for your precise observations on this! I've checked in your fixes to both tests -
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Marking Verified -
Status: RESOLVED → VERIFIED
Targeting as resolved against 1.5R4
Target Milestone: --- → 1.5R4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: