160 r.mouseMove(p.x + menu.getWidth() / 2, p.y + menu.getHeight() / 2); 161 r.waitForIdle(DELAY); 162 r.click(); 163 p = menu.getItem(0).getLocationOnScreen(); 164 checkIconColor(p, ""); 165 r.waitForIdle(DELAY); 166 167 p = menu.getItem(1).getLocationOnScreen(); 168 checkIconColor(p, "radiobutton "); 169 r.waitForIdle(DELAY); 170 171 p = menu.getItem(2).getLocationOnScreen(); 172 checkIconColor(p, "checkbox "); 173 r.waitForIdle(DELAY); 174 175 frame.dispose(); 176 } 177 178 public static void main(String s[]) throws Exception { 179 180 // TODO: remove is2x() after JDK-8150844 fix 181 if (is2x() == "2".equals(System.getProperty(SCALE))) { 182 (new MenuMultiresolutionIconTest()).doTest(); 183 } 184 } 185 } | 160 r.mouseMove(p.x + menu.getWidth() / 2, p.y + menu.getHeight() / 2); 161 r.waitForIdle(DELAY); 162 r.click(); 163 p = menu.getItem(0).getLocationOnScreen(); 164 checkIconColor(p, ""); 165 r.waitForIdle(DELAY); 166 167 p = menu.getItem(1).getLocationOnScreen(); 168 checkIconColor(p, "radiobutton "); 169 r.waitForIdle(DELAY); 170 171 p = menu.getItem(2).getLocationOnScreen(); 172 checkIconColor(p, "checkbox "); 173 r.waitForIdle(DELAY); 174 175 frame.dispose(); 176 } 177 178 public static void main(String s[]) throws Exception { 179 180 (new MenuMultiresolutionIconTest()).doTest(); 181 } 182 } |