8015588: [TEST_BUG] [macosx] Test java/awt/MenuBar/MenuBarSetFont/MenuBarSetFont.java fails on MacOSX

Reviewed-by: anthony, serb
This commit is contained in:
Konstantin Shefov 2013-09-16 19:21:50 +04:00
parent 52cf3b81e7
commit 441fa0cc1d

View File

@ -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));