mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Merge pull request #1806 from StefanBruens/more_test_fixes
More test fixes
This commit is contained in:
@@ -98,10 +98,6 @@ class auiframemanager_Tests(wtc.WidgetTestCase):
|
||||
obj = wx.aui.AuiDockUIPart()
|
||||
|
||||
|
||||
def test_auiframemanager10(self):
|
||||
obj = wx.aui.AuiPaneButton()
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
@@ -116,9 +116,6 @@ class Events(wtc.WidgetTestCase):
|
||||
def test_NotifyEvent_ctor(self):
|
||||
evt = wx.NotifyEvent()
|
||||
|
||||
def test_PaintEvent_ctor(self):
|
||||
evt = wx.PaintEvent()
|
||||
|
||||
def test_PaletteChangedEvent_ctor(self):
|
||||
evt = wx.PaletteChangedEvent()
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class htmlprint_Tests(wtc.WidgetTestCase):
|
||||
obj.SetSize(*size)
|
||||
obj.SetHtmlText('<body><h1>Hello World</h1></body>')
|
||||
|
||||
obj.Render(0,0, [])
|
||||
obj.Render(0,0)
|
||||
|
||||
|
||||
def test_htmlprint2(self):
|
||||
|
||||
@@ -124,18 +124,12 @@ class listctrl_Tests(wtc.WidgetTestCase):
|
||||
wx.LIST_STATE_FOCUSED
|
||||
wx.LIST_STATE_SELECTED
|
||||
wx.LIST_STATE_CUT
|
||||
wx.LIST_STATE_DISABLED
|
||||
wx.LIST_STATE_FILTERED
|
||||
wx.LIST_STATE_INUSE
|
||||
wx.LIST_STATE_PICKED
|
||||
wx.LIST_STATE_SOURCE
|
||||
|
||||
wx.LIST_HITTEST_ABOVE
|
||||
wx.LIST_HITTEST_BELOW
|
||||
wx.LIST_HITTEST_NOWHERE
|
||||
wx.LIST_HITTEST_ONITEMICON
|
||||
wx.LIST_HITTEST_ONITEMLABEL
|
||||
wx.LIST_HITTEST_ONITEMRIGHT
|
||||
wx.LIST_HITTEST_ONITEMSTATEICON
|
||||
wx.LIST_HITTEST_TOLEFT
|
||||
wx.LIST_HITTEST_TORIGHT
|
||||
|
||||
@@ -9,12 +9,13 @@ class propgrideditors_Tests(wtc.WidgetTestCase):
|
||||
|
||||
|
||||
def test_propgrideditors01(self):
|
||||
wl = pg.PGWindowList()
|
||||
assert wl.m_primary is None
|
||||
assert wl.m_secondary is None
|
||||
|
||||
wl = pg.PGWindowList(self.frame)
|
||||
assert wl.m_primary is self.frame
|
||||
assert wl.GetPrimary() is self.frame
|
||||
assert wl.GetSecondary() is None
|
||||
|
||||
wl = pg.PGWindowList(self.frame, None)
|
||||
assert wl.GetPrimary() is self.frame
|
||||
assert wl.GetSecondary() is None
|
||||
|
||||
|
||||
def test_propgrideditors02(self):
|
||||
|
||||
@@ -15,12 +15,6 @@ class property_Tests(wtc.WidgetTestCase):
|
||||
d.m_drawnHeight
|
||||
|
||||
|
||||
def test_propgridproperty02(self):
|
||||
pg.PG_CUSTOM_IMAGE_SPACINGY
|
||||
pg.PG_CAPRECTXMARGIN
|
||||
pg.PG_CAPRECTYMARGIN
|
||||
|
||||
|
||||
def test_propgridproperty03(self):
|
||||
with self.assertRaises(TypeError):
|
||||
# it's an abstract class, so it can't be instantiated
|
||||
|
||||
@@ -56,7 +56,7 @@ class sizer_Tests(wtc.WidgetTestCase):
|
||||
def test_sizerFlags(self):
|
||||
bs = wx.BoxSizer()
|
||||
bs.Add(wx.Panel(self.frame),
|
||||
wx.SizerFlags(2).Border(wx.ALL, 5).Align(wx.ALIGN_RIGHT))
|
||||
wx.SizerFlags(2).Border(wx.ALL, 5).Align(wx.ALIGN_TOP))
|
||||
|
||||
def test_sizerAddMany(self):
|
||||
bs = wx.BoxSizer()
|
||||
|
||||
@@ -186,7 +186,7 @@ class uiaction_KeyboardTests(wtc.WidgetTestCase):
|
||||
@unittest.skipIf(sys.platform == 'darwin', 'wx.UIActionSimulator.Text needs work...')
|
||||
def test_uiactionKeyboardText(self):
|
||||
uia = wx.UIActionSimulator()
|
||||
uia.Text("This is a test")
|
||||
uia.Text(b"This is a test")
|
||||
self.waitFor(WAIT*2)
|
||||
|
||||
self.assertEqual(self.tc.GetValue(), "This is a test")
|
||||
|
||||
@@ -219,7 +219,7 @@ class FMCustomizeDlg(wx.Dialog):
|
||||
hsizer = wx.BoxSizer(wx.HORIZONTAL)
|
||||
|
||||
# add a separator between the book & the buttons area
|
||||
hsizer.Add(wx.Button(self, wx.ID_OK, _("&Close")), 0, wx.EXPAND | wx.ALIGN_RIGHT)
|
||||
hsizer.Add(wx.Button(self, wx.ID_OK, _("&Close")), 0, wx.EXPAND)
|
||||
sz.Add(wx.StaticLine(self), 0, wx.EXPAND | wx.TOP | wx.BOTTOM, 3)
|
||||
sz.Add(hsizer, 0, wx.ALIGN_RIGHT | wx.ALL, 2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user