< prev index next >

test/jdk/sanity/client/SwingSet/src/SliderDemoTest.java

Print this page

        

@@ -80,10 +80,11 @@
 
     private void plain(JFrameOperator jfo, String accessibleName) {
         JSliderOperator jso = new JSliderOperator(jfo,
                 new AccessibleNameChooser(accessibleName));
         if (accessibleName.equals(HORIZONTAL_PLAIN_SLIDER)) {
+            jso.waitHasFocus();
             checkKeyboard(jso);
             checkMouse(jso);
         }
         checkMaximum(jso, PLAIN_SLIDER_MAXIMUM);
         checkMinimum(jso, PLAIN_SLIDER_MINIMUM);
< prev index next >