Last Comment Bug 716677 - test_bug296375.xul makes incorrect assumptions about the event ordering
: test_bug296375.xul makes incorrect assumptions about the event ordering
Product: Core
Classification: Components
Component: DOM: Events (show other bugs)
: unspecified
: x86 Mac OS X
-- normal (vote)
: mozilla12
Assigned To: :Ehsan Akhgari
: Andrew Overholt [:overholt]
Depends on:
Blocks: 668728
  Show dependency treegraph
Reported: 2012-01-09 14:15 PST by :Ehsan Akhgari
Modified: 2012-01-10 20:33 PST (History)
2 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Patch (v1) (804 bytes, patch)
2012-01-09 14:17 PST, :Ehsan Akhgari
bugs: review+
Details | Diff | Splinter Review

Description User image :Ehsan Akhgari 2012-01-09 14:15:52 PST
This test implicitly assumes that events added in order will be fired in order.  We should just call finish when we know that we're done.
Comment 1 User image :Ehsan Akhgari 2012-01-09 14:17:16 PST
Created attachment 587138 [details] [diff] [review]
Patch (v1)
Comment 2 User image Olli Pettay [:smaug] (pto-ish for couple of days) 2012-01-10 07:04:44 PST
Comment on attachment 587138 [details] [diff] [review]
Patch (v1)

Does addLoadEvent not guarantee the right order? That would be bug in
mochitest. addEventListener does guarantee the order. Is mochitest not using that?

But anyway, looks ok.
Comment 3 User image :Ehsan Akhgari 2012-01-10 09:41:08 PST
No, mochitest rolls its own implementation, IIRC.

Note You need to log in before you can comment on or make changes to this bug.