<AWT Dev> Review Request For 8129569 : Test java/awt/Frame/MaximizedToUnmaximized/MaximizedToUnmaximized.java fails

Semyon Sadetsky semyon.sadetsky at oracle.com
Wed Apr 27 14:25:50 UTC 2016



On 4/27/2016 2:13 PM, Ramesh Gangadhar wrote:
>
> Hi Semyon,
>
> Aim of this testcase Is to check whether Frame state is 
> “Frame.MAXIMIZED_BOTH” when Frame size is set to maximizedbounds of Frame.
>
> This scenario is true in Ubuntu and MAC Operating systems and not in 
> other operating systems.
>
> <snippet>
>
> *boolean*_frameStateSupported_ = 
> Toolkit./getDefaultToolkit/().isFrameStateSupported(Frame.*/MAXIMIZED_BOTH/*);
>
>   System.*/out/*.println(frameStateSupported);
>
> </snippet>
>
> Agreed that Above snippet returns true even in windows.
>
> Actual Scenario is While checking for Frame State when Maximized 
> bounds is set (without explicitly setting Frame State), Windows and 
> other Operating systems returns Frame.NORMAL state where as MAC and 
> UBUNTU returns Frame.MAXIMIZED_BOTH state.
>
I see. So it is up to the OS how to interpret the state of the window 
that got the maximum possible size, as MAXIMIZED or as NORMAL.
Then why do we test this? As I understand this is unrelated to Java. If 
OS behavior changed the test will fail again.

--Semyon
>
> Best Regards,
>
> Ramesh BG
>
> *From:*Semyon Sadetsky
> *Sent:* Wednesday, April 27, 2016 13:35
> *To:* Ramesh Gangadhar; awt-dev at openjdk.java.net
> *Subject:* Re: <AWT Dev> Review Request For 8129569 : Test 
> java/awt/Frame/MaximizedToUnmaximized/MaximizedToUnmaximized.java fails
>
> Hi Ramesh,
>
> It looks like you tries to implement the Toolkit# 
> isFrameStateSupported(state) method in your test.
> This is toolkit's job just call it to detect is the required frame 
> state is supported by the platform.
>
> --Semyon
>
> On 4/19/2016 8:40 AM, Ramesh Gangadhar wrote:
>
>     Hello All,
>
>     This is a gentle remainder for review.
>
>     Best Regards,
>
>     Ramesh BG
>
>     *From:* Ramesh Gangadhar
>     *Sent:* Thursday, April 14, 2016 19:40
>     *To:* awt-dev at openjdk.java.net <mailto:awt-dev at openjdk.java.net>
>     *Subject:* Re: <AWT Dev> Review Request For 8129569 : Test
>     java/awt/Frame/MaximizedToUnmaximized/MaximizedToUnmaximized.java
>     fails
>
>     Hi,
>
>     Please review fix for bug 8129569 in JDK 9
>
>     BUG ID: https://bugs.openjdk.java.net/browse/JDK-8129569
>
>     Webrev:
>     http://cr.openjdk.java.net/~arapte/ramesh/8129569/webrev.01/
>     <http://cr.openjdk.java.net/%7Earapte/ramesh/8129569/webrev.01/>
>
>     Issue:
>
>     While checking for Frame State when Maximum bounds is set in  Mac
>     and Ubuntu Operating system sets state = Frame.MAXIMIZED_BOTH but
>     this is not true in other operating system.
>
>     Fix:
>
>     Code modified to set state = Frame.NORMAL when maximum bounds is
>     set to Frame in other operating systems apart from *Ubuntu and Mac.*
>
>     Added command “uname –v” to check whether operating system is
>     Ubuntu or not since using alone ‘System.getProperty("os.name")
>      will not be able to decide operating system as it returns “Linux”
>     for Ubuntu also.
>
>     Verification:
>
>     1.Windows 7 returns NORMAL state for frame when maximum bounds is
>     set to Frame.
>
>     2.Oracle Linux 6.4 returns NORMAL state for frame when maximum
>     bounds is set to Frame.
>
>     3.Solaris returns NORMAL state for frame when maximum bounds is
>     set to Frame.
>
>     4.Ubuntu returns *MAXIMIZED_BOTH* state for frame when maximum
>     bounds is set to Frame.
>
>     5.Mac returns *MAXIMIZED_BOTH* state for frame when maximum bounds
>     is set to Frame
>
>     @Ambarish: Thank you for pointing to Ubuntu.
>
>     Best Regards,
>
>     Ramesh BG
>
>     *From:* Ambarish Rapte
>     *Sent:* Thursday, April 14, 2016 1:57 PM
>     *To:* Ramesh Gangadhar; awt-dev at openjdk.java.net
>     <mailto:awt-dev at openjdk.java.net>
>     *Subject:* RE: <AWT Dev> Review Request For 8129569 : Test
>     java/awt/Frame/MaximizedToUnmaximized/MaximizedToUnmaximized.java
>     fails
>
>     Hi Ramesh,
>
>     Please check the test fails on 64 bit Ubuntu 14.04 LTS.
>
>     Thanks,
>
>     Ambarish
>
>     *From:*Ramesh Gangadhar
>     *Sent:* Thursday, April 14, 2016 12:04 PM
>     *To:* awt-dev at openjdk.java.net <mailto:awt-dev at openjdk.java.net>
>     *Subject:* <AWT Dev> Review Request For 8129569 : Test
>     java/awt/Frame/MaximizedToUnmaximized/MaximizedToUnmaximized.java
>     fails
>
>     Hi,
>
>     Please review fix for bug 8129569 in JDK 9
>
>     BUG ID: https://bugs.openjdk.java.net/browse/JDK-8129569
>
>     Webrev: http://cr.openjdk.java.net/~jdv/Ramesh/8129569/webrev.00/
>     <http://cr.openjdk.java.net/%7Ejdv/Ramesh/8129569/webrev.00/>
>
>     Issue:
>
>     While checking for Frame State when Maximum bounds is set Mac
>     Operating system sets state = Frame.MAXIMIZED_BOTH but this is not
>     true in other operating system.
>
>     Fix:
>
>     Code modified to set state = Frame.NORMAL when maximum bounds is
>     set to Frame in other operating systems.
>
>     Best Regards,
>
>     Ramesh BG
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160427/0020acc7/attachment.html>


More information about the awt-dev mailing list