1
#-------------------------------------------------------------------------------
3
# Test case for the HTMLEditor.
5
# Written by: David C. Morrill
9
# (c) Copyright 2005 by Enthought, Inc.
12
#-------------------------------------------------------------------------------
14
#-------------------------------------------------------------------------------
16
#-------------------------------------------------------------------------------
19
import HasPrivateTraits, Code
22
import View, Group, Item, HTMLEditor
24
#-------------------------------------------------------------------------------
26
#-------------------------------------------------------------------------------
28
sample = """This is a code block:
33
This is an unordered list:
38
This is an ordered list:
52
#-------------------------------------------------------------------------------
54
#-------------------------------------------------------------------------------
56
class TestHTML ( HasPrivateTraits ):
58
#---------------------------------------------------------------------------
60
#---------------------------------------------------------------------------
62
# Text string to display as HTML:
65
#---------------------------------------------------------------------------
66
# Traits view definitions:
67
#---------------------------------------------------------------------------
70
[ Item( 'html#@', editor = HTMLEditor() ), '|<>' ],
71
[ '{Enter formatted text and/or HTML below:}@',
73
'|<>', layout = 'split' ),
74
title = 'HTML Editor Test',
79
#-------------------------------------------------------------------------------
81
#-------------------------------------------------------------------------------
83
if __name__ == '__main__':
84
TestHTML().configure_traits()