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

[TEST_BUG] javax/swing/Popup/TaskbarPositionTest.java failure on e.g. Unity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9
    • client-libs

      Running the test javax/swing/Popup/TaskbarPositionTest.java on my Linux machines, I often have it failed because isPopupOnScreen() method is often called immediately after popup triggering robot action and before the popup bounds are fixed. Robot.waitForIdle() cannot be used here since in many cases isPopupOnScreen is called from EDT. Solution would be, wait for some condition -- or just wait some "mouse event time", 50 or 100 ms, before getting the popup geometry.

            rkannathpari Renjith Kannath Pariyangad
            yan Yuri Nesterenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: