mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
- on Win8 this failed as FONTFAMILY_TELETYPE is ending up using FONTFAMILY_MODERN
This commit is contained in:
@@ -8,9 +8,13 @@ class fontdlg_Tests(wtc.WidgetTestCase):
|
||||
|
||||
def test_fontdlg1(self):
|
||||
data = wx.FontData()
|
||||
data.SetInitialFont(wx.FFont(15, wx.FONTFAMILY_TELETYPE))
|
||||
self.assertEqual(data.InitialFont.Family, wx.FONTFAMILY_TELETYPE)
|
||||
# on Windows wx.FONTFAMILY_TELETYPE will actually use wx.FONTFAMILY_MODERN
|
||||
data.SetInitialFont(wx.FFont(15, wx.FONTFAMILY_MODERN))
|
||||
self.assertEqual(data.InitialFont.Family, wx.FONTFAMILY_MODERN)
|
||||
|
||||
data.SetInitialFont(wx.FFont(15, wx.FONTFAMILY_SWISS))
|
||||
self.assertEqual(data.InitialFont.Family, wx.FONTFAMILY_SWISS)
|
||||
|
||||
dlg = wx.FontDialog(self.frame, data)
|
||||
# TODO: find a safe way to test ShowModal on native dialogs
|
||||
dlg.Destroy()
|
||||
|
||||
Reference in New Issue
Block a user