United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7182902 [macosx] Test api/java_awt/GraphicsDevice/indexTGF.html#SetDisplayMode fails on Mac OS X 10.7
7182902 : [macosx] Test api/java_awt/GraphicsDevice/indexTGF.html#SetDisplayMode fails on Mac OS X 10.7

Details
Type:
Bug
Submit Date:
2012-07-10
Status:
Closed
Updated Date:
2012-08-14
Project Name:
JDK
Resolved Date:
2012-08-03
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
x86,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7u6
Fixed Versions:
7u6

Related Reports
Backport:
Duplicate:
Relates:

Sub Tasks

Description
Testcase setDisplayMode_REFRESH_RATE_UNKNOWN error mesages example:

Testcase "setDisplayMode_REFRESH_RATE_UNKNOWN" failed with message: Bit depth of a display mode returned by method getDisplayMode() is not equal to those passed to method setDisplayMode()
Expected equal to : "16", was given: "32"

estcase "setDisplayMode_REFRESH_RATE_UNKNOWN" failed with arguments [sun.awt.CGraphicsDevice@74d2e636, java.awt.DisplayMode@d3f]
Testcase "setDisplayMode_REFRESH_RATE_UNKNOWN" failed with message: Height of a display mode returned by method getDisplayMode() is not equal to those passed to method setDisplayMode()
Expected equal to : "768", was given: "1024"
	at com.sun.tck.lib.Assert.assertEquals(Assert.java:142)
	at com.sun.tck.lib.Assert.assertEquals(Assert.java:133)

Testcase setDisplayMode_differentModes error mesages example:
Testcase "setDisplayMode_differentModes" failed with message: Display mode was not restored aster returning from full screen mode
Expected equal to : "java.awt.DisplayMode@cec", was given: "java.awt.DisplayMode@d3f"
	at com.sun.tck.lib.Assert.assertEquals(Assert.java:142)
	at com.sun.tck.lib.Assert.assertEquals(Assert.java:133)
	at javasoft.sqe.tests.api.java.awt.GraphicsDevice.SetDisplayMode.setDisplayMode_differentModes(SetDisplayMode.java:136)
JDK:
Java(TM) SE Runtime Environment (build 1.7.0_06-ea-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b08, mixed mode)

OS: Mac OS X 10.7; Darwin Kernel Version 11.4.0

Reproducible: always

Tests:
Test api/java_awt/GraphicsDevice/indexTGF.html#SetDisplayMode

Test result:
http://aurora-ds.ru.oracle.com:9500/runs/77610.ManualSubmit-1/workDir/api/java_awt/GraphicsDevice/indexTGF_SetDisplayMode.jtr

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/jdk/rev/8a90db6c4d77
                                     
2012-08-14
EVALUATION

The fixes are:
- If requested display mode has zero refresh rate than return most appropriate display mode 
- Throw IllegalArgumentException in case if the appropriate display mode has not been found
- Restore display mode after exiting from the Full Screen mode

webrev: http://cr.openjdk.java.net/~alexsch/7182902/webrev7u6.00/
                                     
2012-07-18
EVALUATION

getBestModeForParameters method from the CGraphicsDevice.m class should return appropriate display mode event if for the requested display mode has refresh rate zero.

setFullScreenWindow method from the CGraphicsDevice.java class should remember a display mode before getting to full screen and restore after exiting.
                                     
2012-07-17



Hardware and Software, Engineered to Work Together