RFR: 8368185: Test javax/swing/plaf/synth/SynthButtonUI/6276188/bug6276188.java failed: Synth ButtonUI does not handle PRESSED & MOUSE_OVER state [v3]
Tejesh R
tr at openjdk.org
Tue Oct 7 09:26:39 UTC 2025
On Sun, 5 Oct 2025 05:32:19 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> Test frame is changed to Red for Mouse PRESSED and MOUSE_OVER state but it seem time is too less before it is moved to Green when mouse press is released so it retrieves Green instead of Red.
>> Also, the pixel color retrieval point is conflicting with mouse cursor position, which gets picked up during `robot.createSceenCapture` execution so retrieval point is moved slightly up instead of down.
>>
>> 100 iterations of the test passed in all platforms.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> Remove waitForIdle
> > > This is observed when test is run from IDE. When it is run from jtreg the test passes. Seems strange behavior, do you know the reason?
> >
> >
> > Looks like something to do with IDE settings or system though because it works fine with jtreg and other macos too.
>
> I guess loading the XML for synth
>
> ```java
> lookAndFeel.load(bug6276188.class.getResourceAsStream("bug6276188.xml"), bug6276188.class);
> ```
>
> doesn't work when you run the test from IDE, as [Prasanta said](https://github.com/openjdk/jdk/pull/27444#issuecomment-3364384538). I haven't tried myself.
This anyhow doesn't work in IDE, I modified accordingly while testing. Not related to this I guess.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27444#issuecomment-3375966527
More information about the client-libs-dev
mailing list