Review request for 7142120: [macosx] Some JCK tests for SplashScreen fail on Mac OS X due to incorrect positioning of the splash
alexander.zuev at oracle.com
Tue Feb 7 05:48:30 PST 2012
Looks Ok to me (assuming that even if we start program on the second
screen the splashscreen should have been placed on main screen where
dock and menu bar are).
On 2/6/12 19:49, Anthony Petrov wrote:
> Hi Artem,
> BTW, the updated webrev is at
> Please find my comments inline.
> On 2/6/2012 8:17 PM, Artem Ananiev wrote:
>> On 2/3/2012 5:22 PM, Anthony Petrov wrote:
>>> Please review a fix for
>>> http://bugs.sun.com/view_bug.do?bug_id=7142120 at:
>>> The fix is fairly simple: use NSScreen -frame instead of -visibleFrame.
>>> In this case the splash screen is positioned in the geometrical center
>>> of the screen. Visually this looks less pleasant (we may want to
>>> file an
>>> RFE in the future), but makes tests happy which is what we need
>>> right now.
>> So what exactly do the tests expect? Does the test calculates the
>> expected splashscreen position and compares to the value of
>> SplashScreen.getBounds()? Does the latter method returns an incorrect
>> What I see in JavaDoc is just: "The window is positioned at the
>> center of the screen." It's unclear if the center of the screen
>> should or should not include screen insets.
> The test uses a 100x100 pixels image as a splash screen image. It then
> calls the GraphicsDevice.getDisplayMode().getWidth/Height() methods
> and expects to find the splash screen in the geometrical center of the
> screen (using SplashScreen.getBounds()). I.e. the screen insets are
> Given that the tests pass on Windows, Linux, and Solaris, it makes
> sense to implement the same behavior on Mac OS X as well.
> best regards,
>>> All the failing tests now pass well with this fix applied.
>>> best regards,
More information about the macosx-port-dev