JDK-8151136 : [macosx] According to the description,the case is failed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2016-03-03
  • Updated: 2017-01-10
  • Resolved: 2016-04-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b120Fixed
Related Reports
Relates :  
Relates :  
Description
Testsuite name:Regression
Test name(s):java/awt/event/MouseEvent/AltGraphModifierTest/AltGraphModifierTest.java
Product(s) tested:jdk9b107(64bit)
OS/architecture:jdk-9-ea+107_osx-x64_bin.dmg



Reproducible: Always
Reproducible on machine:Evergreen-machine
[If Sometimes] Also reproducible on machine:



Case Instruction: 
This test is for verifying Alt-Gr modifier of an event.
Windows :-
1. Please check if Alt-Gr key is present on keyboard.
2. If present, press the Alt-Gr key and perform mouse click on the TestWindow.
3. If Alt-Gr key is not present, press Ctrl+Alt keys & perform mouse click on the TestWindow.
4. Test will exit by itself with appropriate result.
Linux :-
1. Please check if Alt-Gr key is present on keyboard.
2. If present, press the Alt-Gr key and perform mouse click on the TestWindow.
3. Navigate to System Settings-> Keyboard-> Shortcuts->Typing.
4. Select an option for the Alternative Characters Key For example. Right Alt
5. Close the settings and navigate to test
6. Press Right Alt Key & perform mouse click on the TestWindow
7. Test will exit by itself with appropriate result.
Mac :-
Mac fix is under progress, & will be fixed soon.Please click Fail

Actual behavior:
1.On the instruction dialog,only has a "Fail" button.
2.According to the description,the case is failed.
Comments
Instruction mentioned in the description of the issue is changed for Mac OS X after the fix. Modified instructions for Mac OS X: 1. Press Right Option key on the keyboard and mouse click on the TestWindow 2. Test will exit by itself with appropriate result.
27-04-2016

The test case is manual. It can���t be automated because of the following reasons: On Mac OS X and Windows: robot.keyPress(KeyEvent.VK_ALT_GRAPH) is possible but VK_ALT_GRAPH is not mapped in native platform code. To automate the test case we need to map java key VK_ALT_GRAPH to OS X equivalent kVK_RightOption (right option key) in the native OS X code and right Alt key on Windows. On Linux(Ubuntu): Alt graph is configurable on Linux. By default the Alt graph key is undefined in System Settings and has to be defined by the user. Therefore the test case can���t be automated since it is not possible to automate the test case on Linux.
27-04-2016

Cause of the problem: On OS X AltGraph functionality was not implemented. Information on AltGraph Key on OS X: On OS X there is no key defined for AltGraph on the Keyboard. Option key has function similar to the AltGr key. But Option is also Alt key on OS X (left and right Option keys). Fix: Right Option key is defined to behave as AltGraph key on OS X. Left Option key only act as Alt key. Final Webrev link: http://cr.openjdk.java.net/~arapte/manajit/8151136/webrev.00/
27-04-2016

As per current analysis AltGraphModifier does not get set on Mac OS. Need to identify keys for this modifier on Mac.
09-03-2016

JDK9b108(64bit)/win8.1-x64 the case "java/awt/event/MouseEvent/AltGraphModifierTest/AltGraphModifierTest.java" failed the same issue.
09-03-2016

RULE "java/awt/event/MouseEvent/AltGraphModifierTest/AltGraphModifierTest.java" Exception java.lang.Exception: User Clicked Fail
03-03-2016