This portion of the Fit spe
Contents:
Fixtures may
fat.AnnotationFixture |
|
|
|
|
OriginalHTML |
Row |
Column |
OverwriteCellBody |
ResultingHTML() |
<table> <tr><td>top left</td><td>top right</td></tr> <tr><td>bottom left</td><td>bottom right</td></tr> </table> |
1 |
1 |
new value |
<table> <tr><td>new value</td><td>top right</td></tr> <tr><td>bottom left</td><td>bottom right</td></tr> </table> |
|
2 |
2 |
another value |
<table> <tr><td>top left</td><td>top right</td></tr> <tr><td>bottom left</td><td>another value</td></tr> </table> |
The raw HTML provided by the fixture is inserted into the table. (Fixtures may also ask for text to HTML
fat.AnnotationFixture |
|
|
|
|
OriginalHTML |
Row |
Column |
OverwriteCellBody |
ResultingHTML() |
<table> <tr><td>text</td></tr> </table> |
1 |
1 |
<b><i>Ex |
<table> <tr><td><b><i>Ex </table> |
Fixtures may add text to the body of a
fat.AnnotationFixture |
|
|
|
|
OriginalHTML |
Row |
Column |
AddToCellBody |
ResultingHTML() |
<table> <tr><td>text</td></tr> </table> |
1 |
1 |
... more text |
<table> <tr><td>text... more text</td></tr> </table> |
Fixtures may manipulate tags as well as text.
Fixtures may overwrite
fat.AnnotationFixture |
|
|
|
|
OriginalHTML |
Row |
Column |
OverwriteCellTag |
ResultingHTML() |
<table> <tr><td>text</td></tr> </table> |
1 |
1 |
<td align=”right”> |
<table> <tr><td align=”right”>text</td></tr> </table> |
<table> <tr><td old=”foo”>text</td></tr> </table> |
1 |
1 |
<td new=”bar”> |
<table> <tr><td new=”bar”>text</td></tr> </table> |
They may also add to
fat.AnnotationFixture |
|
|
|
|
OriginalHTML |
Row |
Column |
AddToCellTag |
ResultingHTML() |
<table> <tr><td>text</td></tr> </table> |
1 |
1 |
[ align=”right”] |
<table> <tr><td align=”right”>text</td></tr> </table> |
<table> <tr><td old=”foo”>text</td></tr> </table> |
1 |
1 |
[ new=”bar”] |
<table> <tr><td old=”foo” new=”bar”>text</td></tr> </table> |
|
1 |
1 |
[no-added-spa |
<table> <tr><td
old=”foo”no-added-spa </table> |
Fixtures
fat.AnnotationFixture |
|
|
|
|
|
OriginalHTML |
Row |
Column |
OverwriteCellTag |
OverwriteEndCellTag |
ResultingHTML() |
<table> <tr><td>text</td></tr> </table> |
1 |
1 |
<foo> |
|
<table> <tr><foo>text</td></tr> </table> |
|
1 |
1 |
<bar> |
</bar> |
<table> <tr><bar>text</bar></tr> </table> |
|
1 |
1 |
<foo> |
</bar> |
<table> <tr><foo>text</bar></tr> </table> |
All of this applies equally to row tags...
fat.AnnotationFixture |
|
|
|
|
|
OriginalHTML |
Row |
OverwriteRowTag |
OverwriteEndRowTag |
AddToRowTag |
ResultingHTML() |
<table> <tr><td>text</td></tr> </table> |
1 |
<tr valign=”true”> |
|
|
<table> <tr valign=”true”><td>text</td></tr> </table> |
|
1 |
<bar> |
</bar> |
|
<table> <bar><td>text</td></bar> </table> |
|
1 |
<foo> |
</bar> |
[ attrib=”yes”] |
<table> <foo attrib=”yes”><td>text</td></bar> </table> |
...and to table tags.
fat.AnnotationFixture |
|
|
|
|
OriginalHTML |
OverwriteTableTag |
OverwriteEndTableTag |
AddToTableTag |
ResultingHTML() |
<table> <tr><td>text</td></tr> </table> |
<table border=”1”> |
|
|
<table border=”1”> <tr><td>text</td></tr> </table> |
|
<bar> |
</bar> |
|
<bar> <tr><td>text</td></tr> </bar> |
|
<foo> |
</bar> |
[ attrib=”yes”] |
<foo attrib=”yes”> <tr><td>text</td></tr> </bar> |
In addition to being able to modify table
Fixtures may add
fat.AnnotationFixture |
|
|
|
|
OriginalHTML |
Row |
Column |
AddCellFollowing |
ResultingHTML() |
<table> <tr><td>text</td></tr> </table> |
1 |
1 |
<td>new |
<table> <tr><td>text</td><td>new
</table> |
<table> <tr><td>text</td><td>last
</table> |
1 |
1 |
<td>yadda</td> |
<table> <tr><td>text</td><td>yadda</td><td>last </table> |
Fixtures may remove
fat.AnnotationFixture |
|
|
|
|
OriginalHTML |
Row |
Column |
RemoveFollowingCell |
ResultingHTML() |
<table> <tr><td>text</td><td>yadda</td><td>last </table> |
1 |
1 |
yes |
<table> <tr><td>text</td><td>last
</table> |
<table> <tr><td>text</td><td>yadda</td><td>last </table> |
1 |
2 |
yes |
<table> <tr><td>text</td><td>yadda</td></tr> </table> |
They
fat.AnnotationFixture |
|
|
|
OriginalHTML |
Row |
AddRowFollowing |
ResultingHTML() |
<table> <tr><td>text</td></tr> </table> |
1 |
<tr><td>new row</td></tr> |
<table> <tr><td>text</td></tr><tr><td>new row</td></tr> </table> |
...and remove rows.
fat.AnnotationFixture |
|
|
|
OriginalHTML |
Row |
RemoveFollowingRow |
ResultingHTML() |
<table> <tr><td>text</td></tr> <tr><td>se </table> |
1 |
yes |
<table> <tr><td>text</td></tr> </table> |
Fixtures
fat.AnnotationFixture |
|
|
OriginalHTML |
AddTableFollowing |
ResultingHTML() |
<table> <tr><td>text</td></tr> </table> |
<table><tr><td> new table </td></tr></table> |
<table> <tr><td>text</td></tr> </table><table><tr><td> new table </td></tr></table> |
Fit provides some “short-
·
right: Fit
·
wrong: Fit
·
error: Fit
·
info: Fit added
information to the
·
ignore: Fit
ignored the
fat.StandardAnnotationFixture |
|
|
|
|
OriginalHTML |
Annotation |
Text |
Output() |
RenderedOutput() |
<td>text</td> |
right |
(none) |
<td bg |
|
|
wrong |
a |
<td bg |
|
|
error |
error message |
<td bg |
|
|
info |
value |
<td>text <font |
|
|
ignore |
(none) |
<td bg |
|
New text provided by
the fixture is
fat.StandardAnnotationFixture |
|
|
|
|
OriginalHTML |
Annotation |
Text |
Output() |
RenderedOutput() |
<td>text</td> |
wrong |
A <p> tag |
<td bg |
|
|
error |
|
<td bg |
|
|
info |
|
<td>text
<font |
|
When annotating “wrong”
and “error”
fat.StandardAnnotationFixture |
|
|
|
|
OriginalHTML |
Annotation |
Text |
Output() |
RenderedOutput() |
<td><ul><li>text</li></ul></td> |
right |
blank |
<td bg |
|
|
wrong |
a |
<td bg |
|
|
error |
error message |
<td bg |
|
|
ignore |
blank |
<td bg |
|
|
info |
value |
<td><ul><li>text</li></ul> <font |
|
Although other mark-up is stripped, line breaks are preserved.
fat.StandardAnnotationFixture |
|
|
|
|
OriginalHTML |
Annotation |
Text |
Output() |
RenderedOutput() |
<td><ul><li>line<br>break</li></ul></td> |
wrong |
a |
<td bg |
|
|
error |
error message |
<td bg |
|
Fixtures may ask Fit to
Some
fat.TextToHtmlFixture |
|
Text |
HTML() |
< |
< |
& |
& |
ASCII line feed codes are turned into HTML break tags. (In these examples, “\n” is ASCII 10, “new
line”, and “\r” is ASCII 13, “
fat.TextToHtmlFixture |
|
Text |
HTML() |
Unix \n line feed |
Unix <br /> line feed |
Ma |
Ma |
DOS \r\n line feed |
DOS <br /> line feed |
Ba |
Ba |
Multiple adjoining spa
fat.TextToHtmlFixture |
|
Text |
HTML() |
1 2 |
1 2 |
fit.Summary |