quasi-survey on writing mozmill tests for thunderbird

Ben Bucksch ben.bucksch at beonex.com
Thu Mar 17 18:56:07 UTC 2011


On 17.03.2011 18:59, Andrew Sutherland wrote:
> Was the fake-server code trying to spin its own nested event loop?  
> While I think it would be preferable to have the fake-server running 
> in its own dedicated thread (basically impossible with recent 
> XPConnect changes) or own process, it seems like the mozmill test 
> environment is roughly equivalent to the xpcshell environment, except 
> that mozmill spins nested event loops all over the place and thus it's 
> not safe for any other code to do the same unless the mozmill 
> environment is prepared for it and able to transfer control to some 
> other testing function (like we do for modal dialogs).

And, FWIW, that was the other reason why the test framework was unusable 
for me, it took me *days* (where I lost lots of hair) to get my test 
half-way working because of this, and the tests I wrote are still 
failing randomly until this day.

Ben



More information about the tb-planning mailing list