<Swing Dev> RFR: 7190978: javax/swing/JComponent/7154030/bug7154030.java fails on mac [v3]
Sergey Bylokhov
serb at openjdk.java.net
Sat Nov 7 23:10:56 UTC 2020
On Sat, 7 Nov 2020 14:33:42 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> but 300x300 is set in frame setSize..if I use frame getBounds instead of already set 300x300, that will not be right, according to me...
The test should set the size 300,300 to the frame and then request and use the real bounds of the frame.
> What if getBounds() has some bug (in some platform) and return some other width/height (say 1 pixel less, we might have similar bug in 8196465) that what is set in setSize, then the test might pass even though robot is capturing wrong bounds.
The getBounds() simply returns the size which was set by the native system, so is it a bug in getBounds() or the real bounds of the frame "say 1 pixel less"?
-------------
PR: https://git.openjdk.java.net/jdk/pull/955
More information about the swing-dev
mailing list