|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object abbot.util.Bugs
public class Bugs
Provides extant bug characterization of the current platform. For any bug
encountered, there should be a static method indicating whether the bug is
expected on the current platform, for example
showAWTPopupMenuBlocks()
.
See the source for
BugsTest
for the
test implementations.
Method Summary | |
---|---|
static String[] |
bugCheck(Window window)
Check for certain robot-related bugs that will affect Abbot operation. |
static boolean |
dragDropRequiresNativeEvents()
Whether drag/drop requires native events. |
static boolean |
fileDialogMisreportsBounds()
Returns whether a FileDialog misreports its screen
location. |
static boolean |
fileDialogRequiresDismiss()
Returns whether a FileDialog requires an explicit
dismiss (ok/cancel). |
static boolean |
fileDialogRequiresVisibleFrame()
|
static boolean |
hasChoiceLockupBug()
Choice popup activates on mouse press, but locks up when the Robot attempts to post a mouse release. |
static boolean |
hasEscapeGenerationBug()
Robot.keyPress(KeyEvent.VK_ESCAPE doesn't work. |
static boolean |
hasFrameDeiconifyBug()
Some OSX releases wouldn't restore an iconified Frame. |
static boolean |
hasHierarchyEventGenerationBug()
Prior to 1.4.1, hierarchy events are only sent if listeners are added to a given component. |
static boolean |
hasInputMethodInsteadOfKeyTyped()
Returns whether KEY_TYPED events are sent to AWT listeners. |
static boolean |
hasKeyInputDelay()
Returnes whether there a longer delay required between robot generation and event queue posting for key events. |
static boolean |
hasKeyStrokeGenerationBug()
OSX prior to 1.4 has really crappy key input handling. |
static boolean |
hasMenuDisableBug()
Returns whether AWT menus have enable/disable problems. |
static boolean |
hasMissingWindowMouseMotion()
Returns whether windows send mouse motion events to AWT listeners. |
static boolean |
hasMultiClickFrameBug()
Do we get multiple clicks even when the individual clicks are on different frames? |
static boolean |
hasNoAWTInputOnTextFieldBug()
|
static boolean |
hasRobotButtonsSwapped()
Returns whether mouse buttons 2/3 are swapped when using Robot. |
static boolean |
hasRobotMotionBug()
OS X (as of 1.3.1, v10.1.5), will sometimes send a click to the wrong component after a mouse move. |
static boolean |
hasTextComponentSelectionDelay()
|
static boolean |
locksUpOnScreenCapture()
|
static boolean |
needsRobotVerification()
Returns whether there may be some scenarios in which the robot does not function properly. |
static boolean |
reportsIncorrectLockingKeyState()
Locking key state is reported incorrectly. |
static boolean |
showAWTPopupMenuBlocks()
Returns whether the Java event queue is suspended while an AWT popup is showing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean hasMenuDisableBug()
public static boolean hasInputMethodInsteadOfKeyTyped()
public static boolean hasMissingWindowMouseMotion()
public static boolean hasRobotButtonsSwapped()
public static boolean hasMultiClickFrameBug()
public static boolean needsRobotVerification()
public static boolean hasHierarchyEventGenerationBug()
public static boolean hasKeyStrokeGenerationBug()
public static boolean hasKeyInputDelay()
public static boolean hasFrameDeiconifyBug()
public static boolean hasRobotMotionBug()
Linux x86 (1.3.1) has a similar problem, although it manifests it at different times (need a bug test case for this one).
Solaris and HPUX probably share code with the linux VM implementation, so the bug there is probably identical.
public static boolean hasChoiceLockupBug()
public static boolean hasEscapeGenerationBug()
public static boolean showAWTPopupMenuBlocks()
public static boolean reportsIncorrectLockingKeyState()
public static boolean dragDropRequiresNativeEvents()
public static boolean fileDialogRequiresDismiss()
FileDialog
requires an explicit
dismiss (ok/cancel). Ordinarily Window.dispose()
will work.
public static boolean fileDialogMisreportsBounds()
FileDialog
misreports its screen
location.
public static boolean fileDialogRequiresVisibleFrame()
public static boolean hasTextComponentSelectionDelay()
public static boolean hasNoAWTInputOnTextFieldBug()
public static boolean locksUpOnScreenCapture()
public static String[] bugCheck(Window window)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |