This is the mail archive of the mauve-discuss@sourceware.org mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Tweaking default java.awt.Robot settings


Thomas,

I think David's suggestion was better, so I'll work that up instead of
the autoDelay changes I proposed.

--steve

On 9/25/07, Thomas Fitzsimmons <fitzsim@redhat.com> wrote:
> Steve McKayâ wrote:
> > Hi All,
> >
> > I've noticed that at least some of the tests using java.awt.Robot are
> > non-deterministic due to lags is the underlying window system. The
> > java.awt.Component.keyPressTest, for example, fails some of the time
> > (on linux, windows, linux+wine, ...). It looks like enabling
> > autoWaitForIdle (waits for the awt EventQueue to be empty before
> > adding new events to the queue), and setting autoDelay (pauses for an
> > arbitrary period of time) to some magic number of millis well above
> > zero (I use 100) significantly reduces failures. Would anyone object
> > to configuring the Robot with settings like this by default?
>
> No objections here, that sounds like a good idea.  When you say "significantly
> reduces failures", does that mean some non-deterministic failures persist with
> the new auto* settings?
>
> Tom
>


-- 
Steve McKay <smckay@google.com>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]