mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 01:10:12 +02:00
27 lines
696 B
Python
27 lines
696 B
Python
import unittest
|
|
from unittests import wtc
|
|
import wx
|
|
import wx.html
|
|
|
|
import os
|
|
helpPath = os.path.join(os.path.dirname(__file__), 'helpfiles')
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class helpdlg_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_helpdlg1(self):
|
|
data = wx.html.HtmlHelpData()
|
|
data.AddBook(os.path.join(helpPath, 'testing.hhp'))
|
|
data.AddBook(os.path.join(helpPath, 'another.hhp'))
|
|
dlg = wx.html.HtmlHelpDialog(data)
|
|
dlg.Create(self.frame)
|
|
|
|
self.myYield()
|
|
dlg.Destroy()
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|