[TEST_BUG] Failure javax/swing/JRadioButton/FocusTraversal/FocusTraversal.java

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: client-libs

        This test consistently (12/12) fails on OS X 10.10 and also fails on Ubuntu 14.04. I didn't try more systems since the test flaw is obvious: it let's Robot to release button immediately after it is pressed. Sometimes it works but very rarely on OS X. The fix is simple:
        --- a/test/javax/swing/JRadioButton/FocusTraversal/FocusTraversal.java
        +++ b/test/javax/swing/JRadioButton/FocusTraversal/FocusTraversal.java
        @@ -60,6 +60,7 @@
             public static void main(String[] args) throws Exception {
         
                 robot = new Robot();
        +robot.setAutoDelay(50);
                 robot.delay(2000);
                 UIManager.LookAndFeelInfo[] lookAndFeelArray
                         = UIManager.getInstalledLookAndFeels();

              Assignee:
              Avik Niyogi (Inactive)
              Reporter:
              Yuri Nesterenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: