Package abbot.tester

Examples of abbot.tester.Robot


    protected void fixtureSetUp() throws Throwable {
        super.fixtureSetUp();

        helper = new AWTFixtureHelper();

        robot = new Robot();
        tracker = WindowTracker.getTracker();

        robot.reset();
        if (Bugs.hasMultiClickFrameBug())
            robot.delay(500);
View Full Code Here


                            bugList.add(Strings.get("Bug2"));
                        }
                    }
                };
                window.addMouseListener(ma);
                Robot robot = new Robot();
                robot.click(window, x, y, mask);
                robot.waitForIdle();
                window.toFront();
                // Bogus acceleration may mean the event goes entirely
                // elsewhere
                if (!gotBug1Event) {
                    bugList.add(0, Strings.get("Bug1"));
                }
                window.removeMouseListener(ma);
            }
            else if (Platform.isOSX()
                && Platform.JAVA_VERSION < 0x1430) {
                Log.debug("Checking for OSX bugs");
                final int mask = InputEvent.BUTTON2_MASK;
                MouseAdapter ma = new MouseAdapter() {
                    public void mouseClicked(MouseEvent e) {
                        if ((e.getModifiers() & mask) != mask) {
                            bugList.add(Strings.get("robot.bug3"));
                        }
                    }
                };
                window.addMouseListener(ma);
                Robot robot = new Robot();
                robot.click(window, x, y, mask);
                robot.waitForIdle();
                window.removeMouseListener(ma);
            }
        }
        return (String[])bugList.toArray(new String[bugList.size()]);
    }
View Full Code Here

TOP

Related Classes of abbot.tester.Robot

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.