提交 3a38e6c9 编写于 作者: K kshefov

8015588: [TEST_BUG] [macosx] Test...

8015588: [TEST_BUG] [macosx] Test java/awt/MenuBar/MenuBarSetFont/MenuBarSetFont.java fails on MacOSX
Reviewed-by: anthony, serb
上级 316f54b7
...@@ -65,6 +65,12 @@ public final class MenuBarSetFont { ...@@ -65,6 +65,12 @@ public final class MenuBarSetFont {
} }
public static void main(final String[] args) throws Exception { 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. //Components initialization.
frame.setMenuBar(mb); frame.setMenuBar(mb);
mb.setFont(new Font("Helvetica", Font.ITALIC, 5)); mb.setFont(new Font("Helvetica", Font.ITALIC, 5));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册