mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Some more progress on RichText wrappers and tests
This commit is contained in:
@@ -1,14 +1,50 @@
|
||||
import imp_unittest, unittest
|
||||
import wtc
|
||||
import wx
|
||||
import wx.richtext
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class richtextstyledlg_Tests(wtc.WidgetTestCase):
|
||||
|
||||
# TODO: Remove this test and add real ones.
|
||||
def test_richtextstyledlg1(self):
|
||||
self.fail("Unit tests for richtextstyledlg not implemented yet.")
|
||||
|
||||
def test_richtextstyledlg1(self):
|
||||
wx.richtext.RICHTEXT_ORGANISER_DELETE_STYLES
|
||||
wx.richtext.RICHTEXT_ORGANISER_CREATE_STYLES
|
||||
wx.richtext.RICHTEXT_ORGANISER_APPLY_STYLES
|
||||
wx.richtext.RICHTEXT_ORGANISER_EDIT_STYLES
|
||||
wx.richtext.RICHTEXT_ORGANISER_RENAME_STYLES
|
||||
wx.richtext.RICHTEXT_ORGANISER_OK_CANCEL
|
||||
wx.richtext.RICHTEXT_ORGANISER_RENUMBER
|
||||
wx.richtext.RICHTEXT_ORGANISER_SHOW_CHARACTER
|
||||
wx.richtext.RICHTEXT_ORGANISER_SHOW_PARAGRAPH
|
||||
wx.richtext.RICHTEXT_ORGANISER_SHOW_LIST
|
||||
wx.richtext.RICHTEXT_ORGANISER_SHOW_BOX
|
||||
wx.richtext.RICHTEXT_ORGANISER_SHOW_ALL
|
||||
wx.richtext.RICHTEXT_ORGANISER_ORGANISE
|
||||
wx.richtext.RICHTEXT_ORGANISER_BROWSE
|
||||
wx.richtext.RICHTEXT_ORGANISER_BROWSE_NUMBERING
|
||||
|
||||
|
||||
def test_richtextstyledlg2(self):
|
||||
sheet = wx.richtext.RichTextStyleSheet()
|
||||
rtc = wx.richtext.RichTextCtrl(self.frame)
|
||||
|
||||
dlg = wx.richtext.RichTextStyleOrganiserDialog(
|
||||
wx.richtext.RICHTEXT_ORGANISER_ORGANISE,
|
||||
sheet, rtc, self.frame)
|
||||
dlg.Destroy()
|
||||
|
||||
|
||||
def test_richtextstyledlg3(self):
|
||||
sheet = wx.richtext.RichTextStyleSheet()
|
||||
rtc = wx.richtext.RichTextCtrl(self.frame)
|
||||
|
||||
dlg = wx.richtext.RichTextStyleOrganiserDialog()
|
||||
dlg.Create(wx.richtext.RICHTEXT_ORGANISER_ORGANISE,
|
||||
sheet, rtc, self.frame)
|
||||
dlg.Destroy()
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user