Add some Html unittests, and fix some issues discovered by the tests.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-11-01 22:51:42 +00:00
parent 79e9959281
commit d4ce9984ff
15 changed files with 116 additions and 53 deletions

View File

@@ -1,14 +1,36 @@
import imp_unittest, unittest
import wtc
import wx
import wx.html
#---------------------------------------------------------------------------
class htmlcell_Tests(wtc.WidgetTestCase):
# TODO: Remove this test and add real ones.
def test_htmlcell1(self):
self.fail("Unit tests for htmlcell not implemented yet.")
c = wx.html.HtmlCell()
def test_htmlcell2(self):
obj = wx.html.HtmlSelection()
def test_htmlcell3(self):
obj = wx.html.HtmlRenderingState()
def test_htmlcell4(self):
obj = wx.html.HtmlRenderingInfo()
def test_htmlcell5(self):
obj = wx.html.HtmlContainerCell(None)
def test_htmlcell6(self):
obj = wx.html.HtmlLinkInfo()
def test_htmlcell7(self):
obj = wx.html.HtmlColourCell(wx.BLACK)
def test_htmlcell8(self):
obj = wx.html.HtmlWidgetCell(self.frame)
#---------------------------------------------------------------------------