Commit 58029cea authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: Add code coverage for new features

parent ea2c7203
...@@ -26,8 +26,12 @@ def _test_ImagePanel(): ...@@ -26,8 +26,12 @@ def _test_ImagePanel():
icon = wx.Bitmap(icon, wx.BITMAP_TYPE_PNG) icon = wx.Bitmap(icon, wx.BITMAP_TYPE_PNG)
icon = icon.ConvertToImage() icon = icon.ConvertToImage()
frame = wx.GetApp().GetTopWindow() frame = wx.GetApp().GetTopWindow()
panel = ip.ImagePanel(frame) panel1 = ip.ImagePanel(frame)
wx.Yield() wx.Yield()
panel.SetImage(icon) panel1.SetImage(icon)
wx.Yield()
panel2 = ip.ImagePanel(frame, preserveAspect=True)
wx.Yield()
panel2.SetImage(icon)
wx.Yield() wx.Yield()
...@@ -41,6 +41,7 @@ def _test_setColours(): ...@@ -41,6 +41,7 @@ def _test_setColours():
notebook.AddPage(page1, 'page1') notebook.AddPage(page1, 'page1')
notebook.SetButtonColours(text='#ffffff', notebook.SetButtonColours(text='#ffffff',
disabledText='#d0d0d0',
default='#000000', default='#000000',
selected='#0000ff') selected='#0000ff')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment