changeset 48162:3ec2f3f942b4

8191616: [TEST_BUG] : sanity/client/SwingSet/src/SliderDemoTest.java: Failed with TimeoutExpiredException: Wait "Wait till Slider attains the specified state." Reviewed-by: serb
author shurailine
date Mon, 20 Nov 2017 15:05:10 -0800
parents fd09f2896e69
children a5fe5534b8a2
files test/jdk/sanity/client/SwingSet/src/SliderDemoTest.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/sanity/client/SwingSet/src/SliderDemoTest.java	Mon Nov 20 14:49:23 2017 -0800
+++ b/test/jdk/sanity/client/SwingSet/src/SliderDemoTest.java	Mon Nov 20 15:05:10 2017 -0800
@@ -82,6 +82,7 @@
         JSliderOperator jso = new JSliderOperator(jfo,
                 new AccessibleNameChooser(accessibleName));
         if (accessibleName.equals(HORIZONTAL_PLAIN_SLIDER)) {
+            jso.waitHasFocus();
             checkKeyboard(jso);
             checkMouse(jso);
         }