TestCenter Reference
TestSupport.Base.HtmlDiff Class Reference
Inheritance diagram for TestSupport.Base.HtmlDiff:

Public Member Functions

 __init__ (self)
 

Protected Member Functions

 _format_line (self, side, flag, linenum, text)
 

Static Protected Attributes

str _styles
 
str _table_template
 

Detailed Description

Definition at line 811 of file Base.py.

Constructor & Destructor Documentation

◆ __init__()

TestSupport.Base.HtmlDiff.__init__ ( self)

Definition at line 840 of file Base.py.

Member Function Documentation

◆ _format_line()

TestSupport.Base.HtmlDiff._format_line ( self,
side,
flag,
linenum,
text )
protected

Definition at line 843 of file Base.py.

Member Data Documentation

◆ _styles

str TestSupport.Base.HtmlDiff._styles
staticprotected
Initial value:
= """
table.diff {font-family:monospace;border:medium;margin:0;}
.diff_header {background-color:#e0e0e0}
td.diff_header {text-align:right}
.diff_next {background-color:#c0c0c0}
.diff_add {background-color:#aaffaa}
.diff_chg {background-color:#ffff77}
.diff_sub {background-color:#ffaaaa}
tr, td, th {vertical-align:top;}
table.diff tbody {
white-space: -pre-wrap;
white-space: -o-pre-wrap;
white-space: -moz-pre-wrap;
white-space: pre-wrap;
word-wrap: break-word;
}"""

Definition at line 813 of file Base.py.

◆ _table_template

str TestSupport.Base.HtmlDiff._table_template
staticprotected
Initial value:
= """
<table class="diff" id="difflib_chg_%(prefix)s_top"
cellspacing="0" cellpadding="1" rules="groups" width="100%%">
<colgroup></colgroup> <colgroup></colgroup> <colgroup width="50%%"></colgroup>
<colgroup></colgroup> <colgroup></colgroup> <colgroup width="50%%"></colgroup>
%(header_row)s
<tbody>
%(data_rows)s </tbody>
</table>"""

Definition at line 830 of file Base.py.


The documentation for this class was generated from the following file: