United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8011186 [TEST_BUG] java/awt/Focus/OverrideRedirectWindowActivationTest/OverrideRedirectWindowActivationTest.java failed on windows 8
JDK-8011186 : [TEST_BUG] java/awt/Focus/OverrideRedirectWindowActivationTest/OverrideRedirectWindowActivationTest.java failed on windows 8

Details
Type:
Bug
Submit Date:
2013-04-01
Status:
Resolved
Updated Date:
2013-09-04
Project Name:
JDK
Resolved Date:
2013-04-24
Component:
client-libs
OS:
windows_8
Sub-Component:
java.awt
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7u1,8
Fixed Versions:

Related Reports
Backport:
Backport:

Sub Tasks

Description
test java/awt/Focus/OverrideRedirectWindowActivationTest/OverrideRedirectWindowActivationTest.java fails on windows 8 because window control buttons (minimize, maximize, close) wider than on other windows platform, robot click on minimize button instead of window header panel, test window losts focus and test fails

log out:
----------System.err:(13/882)----------
java.lang.RuntimeException: Test failed: the window couldn't be activated by click!
	at OverrideRedirectWindowActivationTest.main(OverrideRedirectWindowActivationTest.java:85)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:96)
	at java.lang.Thread.run(Thread.java:722)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed: the window couldn't be activated by click!
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed: the window couldn't be activated by click!
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed: the window couldn't be activated by click!


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed: the window couldn't be activated by click!
                                    

Comments
downgraded to P4 as a test bug
                                     
2013-04-03
Description says: "test java/awt/Focus/OverrideRedirectWindowActivationTest/OverrideRedirectWindowActivationTest.java fails on windows 8 because window control buttons (minimize, maximize, close) wider than on other windows platform, robot click on minimize button instead of window header panel, test window losts focus and test fails"

The width of test frames has been increased to make robot click on frame header.

http://cr.openjdk.java.net/~kshefov/8011186/webrev.00/


                                     
2013-04-22
URL:   http://hg.openjdk.java.net/jdk8/awt/jdk/rev/7103434eefe2
User:  kshefov
Date:  2013-04-24 07:50:30 +0000

                                     
2013-04-24
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/7103434eefe2
User:  lana
Date:  2013-05-07 18:40:01 +0000

                                     
2013-05-07
same issue on windows 7 for 7u25:
----------System.out:(4/442)----------
sun.awt.TimedWindowEvent[WINDOW_GAINED_FOCUS,opposite=null,oldState=0,newState=0] on frame0
java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on java.awt.Button[button0,74,35,51x23,label=fbutton]
java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=null,cause=ACTIVATION] on java.awt.Button[button0,74,35,51x23,label=fbutton]
sun.awt.TimedWindowEvent[WINDOW_LOST_FOCUS,opposite=null,oldState=0,newState=0] on frame0
----------System.err:(13/849)----------
java.lang.RuntimeException: Error: a frame couldn't be focused by click.
	at OverrideRedirectWindowActivationTest.main(OverrideRedirectWindowActivationTest.java:78)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:96)
	at java.lang.Thread.run(Thread.java:724)

passed with classic windows theme
                                     
2013-06-11



Hardware and Software, Engineered to Work Together