Closed
Bug 650581
Opened 14 years ago
Closed 14 years ago
Test for bug 500328 should avoid using flaky timeouts
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla6
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
3.54 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•14 years ago
|
||
Attachment #526552 -
Flags: review?(jonas)
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Comment 2•14 years ago
|
||
I'm not even sure why that longWait is there, to be perfectly honest. Presumably it doesn't work with setTimeout(0). But if the idiom you replaced it with is useful, then maybe it belongs in SimpleTest?
Thanks for taking on this project, Ehsan.
Assignee | ||
Comment 3•14 years ago
|
||
(In reply to comment #2)
> I'm not even sure why that longWait is there, to be perfectly honest.
> Presumably it doesn't work with setTimeout(0).
This is used to test to make sure that something doesn't happen. Depending on the number of events that need to be processed for that thing to happen (in a buggy situation), setTimeout(0) might not work.
> But if the idiom you replaced
> it with is useful, then maybe it belongs in SimpleTest?
Maybe. I've used this idiom in a bunch of places so far. But I think this is something that can easily be done if needed later. At this point, I don't want to worry about abstracting these types of idioms into SimpleTest functions.
> Thanks for taking on this project, Ehsan.
No problem! Any help is appreciated BTW. :-)
Attachment #526552 -
Flags: review?(jonas) → review+
Assignee | ||
Comment 4•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•