On Tue, 30 Sep 2025 23:46:47 GMT, Harshitha Onkar <[email protected]> wrote:

> This test fails on macOS 26 due to slight color mismatch at background frame 
> edges. A offset of 4 pixels is added as fix.
> 
> CI testing passes on other platforms.

test/jdk/java/awt/Frame/DisposeTest.java line 42:

> 40:  * @summary Tests that disposing of a Frame with MenuBar removes all 
> traces
> 41:  *          of the Frame from the screen.
> 42:  * @run main/othervm -Dsun.java2d.uiScale=1 DisposeTest

Why do you need to set scale factor=1, does the default break something?

test/jdk/java/awt/Frame/DisposeTest.java line 80:

> 78: 
> 79:         for (int x = PIXEL_OFFSET; x < bi.getWidth() - PIXEL_OFFSET; x++) 
> {
> 80:             for (int y = PIXEL_OFFSET; y < bi.getHeight() - PIXEL_OFFSET; 
> y++) {

It might be better to increase the size of the background frame so that its 
edge does not appear under the tested frame.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27585#discussion_r2393110080
PR Review Comment: https://git.openjdk.org/jdk/pull/27585#discussion_r2393111551

Reply via email to