JDK-7107585 : [macosx] Test incorrect calculate position of object on frame
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-11-02
  • Updated: 2014-10-15
  • Resolved: 2012-07-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u4Fixed 8 b14Fixed
Description
Problems with test closed/javax/swing/JSlider/6348946/bug6348946.java 

On Mac os x default size of JFrame less than in other platforms.
In method clickOnSlider mouse click happens on JSliders's thumb.

May be need change line:
robot.mouseMove(frameLefatX + 30, frameBottomY - 15);
to:
robot.mouseMove(frameLefatX + 20, frameBottomY - 15);

or manualy set size of window.

log in attachment.

Comments
EVALUATION It needs to use the JSlider coordinats instead of JFrame for the JSlider position calculation and relative coordinats for the mouse click calculation.
08-11-2011