Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8318423

Add explicit robot.waitForIdle to JToolBar/4529206/bug4529206.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 22
    • client-libs
    • b12
    • 22

      Under JDK-8314246, all calls to robot.waitForIdle() the javax/swing/JToolBar/4529206/bug4529206.java test are removed in favour of robot.setAutoWaitForIdle(true), which essentially means waitForIdle() is never called any more.

      When setAutoWaitForIdle is set to true, robot automatically calls waitForIdle *after* it posts an event. It is the only time where robot automatically calls waitForIdle if it's enabled; just like setAutoDelay. See Robot.afterEvent().

      Thus, I think the bug4529206.java test should call robot.waitForIdle() after it performed each action before checking for the result.

            honkar Harshitha Onkar
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: