Open Bug 733769 Opened 8 years ago Updated 6 years ago

Add better support for delayed simple test ref test checks for themed widgets

Categories

(Core :: Widget: Win32, defect)

x86_64
Windows 7
defect
Not set

Tracking

()

People

(Reporter: jimm, Unassigned)

References

(Depends on 1 open bug)

Details

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.
Assignee: jmathies → nobody
You need to log in before you can comment on or make changes to this bug.