Open Bug 398118 Opened 12 years ago Updated 2 years ago
Kit's is Array Like needs to deal with windows
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.
Component: Testing → Mochitest
Product: Core → Testing
QA Contact: testing → mochitest
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: 2 years ago
Resolution: --- → WONTFIX
This is still relevant; it's not like we changed any of the mochikit code. I'm not sure what "modern context" you want.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
You need to log in before you can comment on or make changes to this bug.