RFR: 8334457: Test javax/swing/JTabbedPane/bug4666224.java fail on macOS with because pressing the ‘C’ key does not switch the layout to WRAP_TAB_LAYOUT

Tejesh R tr at openjdk.org
Thu Jul 11 05:17:55 UTC 2024


On Mon, 8 Jul 2024 09:11:57 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> This test tests the wrapping policy of JTabbedPane in one of the subinstructions which is not applicable for macos which does not support wrapping or scrolling in tabbed layout.
> It can be seen in "Dictionary" native app amongst others where resizing the windows to smaller size does not wrap the tabbedpane.
> Updated test instruction to highlight the macos-not-applicable point..

test/jdk/javax/swing/JTabbedPane/bug4666224.java line 52:

> 50: 
> 51:     private static final String INSTRUCTIONS = """
> 52:                 ON ALL PLATFORMS except macos where pt.6 is not applicable

Instead of mentioning about the exception, I guess you can move it to point 10 and exclude/include from test instructions (Basically string concat) based on OS type?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20068#discussion_r1673410959


More information about the client-libs-dev mailing list