Please review changes in regression test /java/awt/Multiscreen/LocationRelativeToTest/LocationRelativeToTest.java

Pavel Tisnovsky ptisnovs at redhat.com
Mon Jan 25 08:54:30 PST 2010


Hi,

please review changes made in regression test
/java/awt/Multiscreen/LocationRelativeToTest/LocationRelativeToTest.java

Webrev is available at 
http://cr.openjdk.java.net/~ptisnovs/LocationRelativeToTest/

I changed only minor part of test code utilized to check, if frame is 
placed at the center of the screen. The test should (IMHO, of course) 
use Point returned by GraphicsEnvironment.getCenterPoint() in this case, 
not coordinates computed from selected GraphicsConfiguration's bound.

According to JavaSE 6 documentation:
"If the component is not currently showing (*** our case ***), or c is 
null, the window is placed at the center of the screen. The center point 
can be determined with GraphicsEnvironment.getCenterPoint"

Tested on:
Fedora 10 with multi-screen configuration (laptop screen+external LCD)
RHEL 5 x86_64 with virtual framebuffer
(this tests fails on these machines before being patched)

Thanks in advance
Pavel Tisnovsky
Red Hat QA



More information about the jdk6-dev mailing list