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.
Created attachment 587138 [details] [diff] [review]
Comment on attachment 587138 [details] [diff] [review]
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.
No, mochitest rolls its own implementation, IIRC.