This is the mail archive of the
mauve-discuss@sourceware.org
mailing list for the Mauve project.
Tweaking default java.awt.Robot settings
- From: "Steve McKayâ" <smckay at google dot com>
- To: mauve-discuss at sources dot redhat dot com
- Date: Mon, 24 Sep 2007 13:31:38 -0700
- Subject: Tweaking default java.awt.Robot settings
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? If no,
should the config mechanism be updated to allow tweaking these
settings?
--
Steve McKay <smckay@google.com>