mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-07-21 12:41:10 +02:00
add a simple unittest
This commit is contained in:
27
unittests/test_lib_throbber.py
Normal file
27
unittests/test_lib_throbber.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import imp_unittest, unittest
|
||||
import wtc
|
||||
import wx
|
||||
import wx.lib.throbber as th
|
||||
|
||||
|
||||
import throbImages
|
||||
images = [throbImages.catalog[i].GetBitmap()
|
||||
for i in throbImages.index
|
||||
if i not in ['eclouds', 'logo']]
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class lib_throbber_Tests(wtc.WidgetTestCase):
|
||||
|
||||
def test_lib_throbber(self):
|
||||
pnl = wx.Panel(self.frame)
|
||||
w = th.Throbber(pnl, -1, images, size=(36, 36))
|
||||
|
||||
def test_lib_throbber_Events(self):
|
||||
th.EVT_UPDATE_THROBBER
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
1277
unittests/throbImages.py
Normal file
1277
unittests/throbImages.py
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user