Test dc.DrawLines to check PySequence --> wxPointList conversion

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-10-12 21:32:28 +00:00
parent 2822bb2cd7
commit d1bdbd0155

View File

@@ -8,7 +8,7 @@ pngFile = os.path.join(os.path.dirname(__file__), 'toucan.png')
#---------------------------------------------------------------------------
class DCTests(wtc.WidgetTestCase):
class dc_Tests(wtc.WidgetTestCase):
def test_ConstantsExist(self):
wx.CLEAR
@@ -130,6 +130,13 @@ class DCTests(wtc.WidgetTestCase):
self.assertTrue(type(values) == list)
self.assertTrue(len(values) == 5)
def test_dcPointLists(self):
dc = wx.ClientDC(self.frame)
dc.DrawLines([wx.Point(5,5), wx.Point(25,5), wx.Point(25,25), wx.Point(25,5), wx.Point(5,5)])
dc.DrawLines([(15,15), (35,15), (35,35), (35,15), (15,15)])
#---------------------------------------------------------------------------