mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-12 13:35:06 +00:00
8015588: [TEST_BUG] [macosx] Test java/awt/MenuBar/MenuBarSetFont/MenuBarSetFont.java fails on MacOSX
Reviewed-by: anthony, serb
This commit is contained in:
parent
52cf3b81e7
commit
441fa0cc1d
@ -65,6 +65,12 @@ public final class MenuBarSetFont {
|
||||
}
|
||||
|
||||
public static void main(final String[] args) throws Exception {
|
||||
|
||||
if (sun.awt.OSInfo.getOSType() == sun.awt.OSInfo.OSType.MACOSX) {
|
||||
System.err.println("This test is not for OS X. Menu.setFont() is not supported on OS X.");
|
||||
return;
|
||||
}
|
||||
|
||||
//Components initialization.
|
||||
frame.setMenuBar(mb);
|
||||
mb.setFont(new Font("Helvetica", Font.ITALIC, 5));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user