Skip to content

Conversation

prsadhuk
Copy link
Contributor

@prsadhuk prsadhuk commented Sep 9, 2025

Test was made to fail due to presence of only "Fail" button instead of both "Pass" and "Fail".

Modified the test to use PFJ and also clarified the instruction for Windows and Linux


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8162380: [TEST_BUG] MouseEvent/.../AltGraphModifierTest.java has only "Fail" button (Bug - P5)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27162/head:pull/27162
$ git checkout pull/27162

Update a local copy of the PR:
$ git checkout pull/27162
$ git pull https://git.openjdk.org/jdk.git pull/27162/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 27162

View PR using the GUI difftool:
$ git pr show -t 27162

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27162.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 9, 2025

👋 Welcome back psadhukhan! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Sep 9, 2025

@prsadhuk This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8162380: [TEST_BUG] MouseEvent/.../AltGraphModifierTest.java has only "Fail" button

Reviewed-by: azvegint, aivanov

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 117 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk
Copy link

openjdk bot commented Sep 9, 2025

@prsadhuk The following label will be automatically applied to this pull request:

  • client

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added client [email protected] rfr Pull request is ready for review labels Sep 9, 2025
@mlbridge
Copy link

mlbridge bot commented Sep 9, 2025

Webrevs

This test is for verifying Alt-Gr modifier of an event.
Please check if Alt-Gr key is present on keyboard.
If not present, press Pass.
Window :-
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Window :-
On Windows:

There should be no space before colon… in English punctuation.

Window :-
Press Alt-Gr or Right Alt key and simulataneously
perform mouse click on the "TestWindow".
Linux :-
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Linux :-
On Linux:

perform mouse click on the "TestWindow".
Linux :-
Navigate to
System Settings-> Keyboard-> Shortcuts->Typing.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
System Settings-> Keyboard-> Shortcuts->Typing.
System Settings-> Keyboard-> Shortcuts-> Typing.

Be consistent.

Comment on lines 50 to 53
Navigate to
System Settings-> Keyboard-> Shortcuts->Typing.
Select an option for the Alternative Characters Key
For example. Right Alt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The instructions are still unclear to me. There's no Shortcut settings in GNOME in Ubuntu 22.04.

There is, however, Keyboard Shortcuts section with View and customise shortcuts. In the popup, there's a Typing section, but there's nothing like alternative keys.

On the main Keyboard settings screen, there's an option Alternate Characters Key, it's set to Layout default in my settings. Is this the option to change?

The original instructions make the tester click twice: before changing an option in the settings and after doing so. The new instructions ask to change the setting only.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the main Keyboard settings screen, there's an option Alternate Characters Key, it's set to Layout default in my settings. Is this the option to change?

Yes, I modified the instruction

keyboard-shortcut

Comment on lines 74 to 75
@Override
public void mousePressed(MouseEvent e) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Override
public void mousePressed(MouseEvent e) {
@Override
public void mousePressed(MouseEvent e) {

Correct the indentation.

@prsadhuk prsadhuk changed the title 8162380: [TEST_BUG]Failed the case just press the "fail" button on other platform except linux. 8162380:[TEST_BUG] MouseEvent/.../AltGraphModifierTest.java has only the "Fail" button Sep 9, 2025
@prsadhuk prsadhuk changed the title 8162380:[TEST_BUG] MouseEvent/.../AltGraphModifierTest.java has only the "Fail" button 8162380:[TEST_BUG] MouseEvent/.../AltGraphModifierTest.java has only "Fail" button Sep 9, 2025
@openjdk openjdk bot removed the rfr Pull request is ready for review label Sep 9, 2025
@prsadhuk prsadhuk changed the title 8162380:[TEST_BUG] MouseEvent/.../AltGraphModifierTest.java has only "Fail" button 8162380: [TEST_BUG] MouseEvent/.../AltGraphModifierTest.java has only "Fail" button Sep 9, 2025
@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 9, 2025
Please check if Alt-Gr key is present on keyboard.
If not present, press Pass.
On Windows:
Press Alt-Gr or Right Alt key and simulataneously
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Press Alt-Gr or Right Alt key and simulataneously
Press Alt-Gr or Right Alt key and simultaneously

On Linux:
Navigate to
System Settings-> Keyboard-> Special Character Entry
Select "Right Alt" option for the "Alternative Characters Key"
Copy link
Member

@azvegint azvegint Sep 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Select "Right Alt" option for the "Alternative Characters Key"
Select "Right Alt" option for the "Alternate Characters Key"

I guess we should add instructions for a test user to turn the setting back to default, or skip the test if their system does not have such a setting.

We also use the forcePass/forceFail approach:

  • The test user may not have a chance to read the instructions all the way through if they are just following them.
  • If the user accidentally presses a mouse button with the wrong or missing modifier, there is no way to retry.

So maybe we should add logArea and print theresults there, to allow the test user to make several attempts, and read the instructions till the end.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually user should read the instructions till the end and then only attempt the test, which is true for all the manual tests
but I got the point.
I have added logArea and let user press Pass/Fail depending on the result printed there..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about the following?

I guess we should add instructions for a test user to turn the setting back to default, or skip the test if their system does not have such a setting.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually it's implicit to change the setting back to original but I have added the instructions just in case..

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Sep 10, 2025
@prsadhuk
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Sep 10, 2025

Going to push as commit 34c3ac0.
Since your change was applied there have been 118 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Sep 10, 2025
@openjdk openjdk bot closed this Sep 10, 2025
@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Sep 10, 2025
@prsadhuk prsadhuk deleted the JDK-8162380 branch September 10, 2025 16:00
@openjdk openjdk bot removed the rfr Pull request is ready for review label Sep 10, 2025
@openjdk
Copy link

openjdk bot commented Sep 10, 2025

@prsadhuk Pushed as commit 34c3ac0.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client [email protected] integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants