Closed
Bug 740467
Opened 12 years ago
Closed 12 years ago
Make test_XHR_timeout.js use addEventListener(..., obj, ...) instead of on* = obj
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: peterv, Assigned: peterv)
Details
Attachments
(1 file, 1 obsolete file)
1.84 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #610585 -
Flags: review?(khuey)
Attachment #610585 -
Flags: review?(khuey) → review+
Comment 1•12 years ago
|
||
I object to this. I had a reason for using on*. The spec said the ontimeout attribute had to exist and map to a timeout event listener. This patch removes the test for ontimeout working.
Ok, then we need to test that differently. Per spec onfoo properties don't accept objects with handleEvent methods, only functions.
Comment 3•12 years ago
|
||
Yeah, kyle is right. I should have noticed the problem in the xhr.timeout tests.
Comment 4•12 years ago
|
||
I agree - the code should've caught that... but I think that should be a separate bug. I'd feel better if the test file itself were cloned, and the clone used the addEventListener approach.
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #610585 -
Attachment is obsolete: true
Attachment #610603 -
Flags: review?(khuey)
To be clear, when we land bug 740069 this test will stop working if we don't do anything to it. Peterv is going to post a new patch that addresses your comments.
Attachment #610603 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 7•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/5561efcb19f2
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5561efcb19f2
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•