Open
Bug 398118
Opened 16 years ago
Updated 5 months ago
MochiKit's isArrayLike needs to deal with windows
Categories
(Testing :: Mochitest, defect)
Tracking
(Not tracked)
REOPENED
People
(Reporter: mrbkap, Unassigned)
Details
See bug 398109 comment 0. STEPS TO REPRODUCE: 1. Add |is(window, 'not correct', "failing testcase");| to a MochiTest 2. Run said MochiTest. EXPECTED RESULTS: The MochiTest should fail saying: ...expected: not correct, got: [object Window]... ACTUAL RESULTS: The MochiTest fails saying: ...expected: not correct, got: []... The reason is that windows have a |length| property, so when the repr code attempts to look up the window in the reprRegistry, isArrayLike returns true, giving the unexpected, incorrect result. Presumably, isArrayLike needs to special case windows.
Updated•15 years ago
|
Component: Testing → Mochitest
Product: Core → Testing
QA Contact: testing → mochitest
Comment 1•5 years ago
|
||
Mass closing mochitest bugs that haven't had activity in the past 5 years. Please re-open or file a new bug with modern context if this is still relevant.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
![]() |
||
Comment 2•5 years ago
|
||
This is still relevant; it's not like we changed any of the mochikit code. I'm not sure what "modern context" you want.
![]() |
||
Updated•5 years ago
|
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Updated•5 months ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•