RFR: 8356061: [macos] com/apple/laf/RootPane/RootPaneDefaultButtonTest.java test fails on macosx-aarch64 machine [v3]
Jeremy Wood
duke at openjdk.org
Wed May 21 00:24:53 UTC 2025
On Tue, 20 May 2025 20:16:46 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
> Is it possible that the button hovered by mouse looks the same way as the default one?
That's the big question this unit test is trying to answer. (So: I'm not sure.)
> Did the original test move the mouse before getting pixel color of a button?
Yes.
<img width="633" alt="image" src="https://github.com/user-attachments/assets/a90b506a-3600-4378-ba56-232001850e40" />
If that was the problem: all we needed to do is delete this call to `robot.mouseMove`.
(But even so: I think the cursor on Mac is black -- so why would we detect a gray 0x373737 ?)
It may also be worth pointing out: this test has never failed. It was added as an extra precaution, but not because it demonstrated a fix for anything. I would not miss it if we delete it; I don't think it deserves the time spent discussing/refactoring it.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25244#issuecomment-2896118497
More information about the client-libs-dev
mailing list