Open Bug 733769 Opened 8 years ago Updated 6 years ago
Add better support for delayed simple test ref test checks for themed widgets
This came up in bug 373266 - https://bugzilla.mozilla.org/attachment.cgi?id=599984&action=diff Using setTimeout isn't very reliable, what we really want to be able to do is insure we run through the event loop for paint refresh a few times before repeating the test. So for example, in place of SimpleTest.executeSoon(execNext) something like SimpleTest.executeAfter(execNext, timeout) where executeAfter uses the event loop as a delaying function and timeout is the maximum time we want to keep waiting. executeAfter should isnure at least one event loop gets executed. execNext would get called if the test succeeded, or after timeout / test failure.
Is a function like this sort of what you're looking for? <http://dxr.lanedo.com/mozilla-central/toolkit/components/passwordmgr/test/test_basic_form_autocomplete.html.html#l191>
You need to log in before you can comment on or make changes to this bug.