HTML tags and entities tests pass for Python

This commit is contained in:
Marko Klopcic 2013-02-14 21:53:09 +01:00
commit 9b52972c24
2 changed files with 44 additions and 35 deletions

View file

@ -143,20 +143,20 @@ int function(int a, float b)
* </dl>
*
* <DFN>Starts a piece of text displayed in a typewriter font.
* </DFN>
* </DFN>
* <DIV>Starts a section with a specific style (HTML only)
* </DIV>
* <EM>Starts a piece of text displayed in an italic font.
* </EM>
* </DIV>
* <EM>Starts a piece of text displayed in an italic font.</EM>
*
* <FORM>'Form' does not generate any output.
* </FORM>
* <HR>
* <HR>
* <H1>Heading 1
* </H1>
* <H2>Heading 2
* </H2>
* </H2>
* <H3>Heading 3
* </H3>
* </H3>
* <I>Starts a piece of text displayed in an italic font.</I>
* <INPUT>Input tag.
* <IMG src="slika.png">
@ -165,12 +165,12 @@ int function(int a, float b)
* </MULTICOL>
*
* <OL>
* <LI>List item 1.</LI>
* <LI>List item 2.</LI>
* </OL>
* <LI>List item 1.</LI>
* <LI>List item 2.</LI>
* </OL>
*
* <P>Starts a new paragraph.
* </P>
* </P>
* <PRE>Starts a preformatted fragment.
* </PRE>
* <SMALL>Starts a section of text displayed in a smaller font.
@ -188,16 +188,16 @@ int function(int a, float b)
<tr><td> horse </td><td> parrot </td></tr>
* </table>
*
* <TT> Starts a piece of text displayed in a typewriter font.
* </TT>
* <KBD> Starts a piece of text displayed in a typewriter font.
* </KBD>
* <TT>Starts a piece of text displayed in a typewriter font.
* </TT>
* <KBD>Starts a piece of text displayed in a typewriter font.
* </KBD>
*
* <UL> Starts an unnumbered item list.
* <LI> List item 1.</LI>
* <LI> List item 2.</LI>
* <LI> List item 3.</LI>
* </UL> Ends an unnumbered item list.
* <UL>
* <LI>List item 1.</LI>
* <LI>List item 2.</LI>
* <LI>List item 3.</LI>
* </UL>
*
* <VAR>Starts a piece of text displayed in an italic font.</VAR>
*

View file

@ -137,10 +137,10 @@ r"""
commentVerifier.check(doxygen_translate.htmlFunction.__doc__,
r"""
Test for html tags. See Doxygen doc for list of tags recognized by Doxygen.
This is link (http://acme.com/index.html)
This is link ("http://acme.com/index.html")
__bold__
Quote:
Quote:
Quotation block.
("http://www.worldwildlife.org/who/index.html")
@ -154,7 +154,7 @@ r"""
Starts a piece of text displayed in a typewriter font.
Starts a section with a specific style (HTML only)
__Starts a piece of text displayed in an italic font.__
@ -162,6 +162,7 @@ r"""
'Form' does not generate any output.
--------------------------------------------------------------------
# Heading 1
## Heading 2
@ -170,14 +171,17 @@ r"""
_Starts a piece of text displayed in an italic font._
Input tag.
Image:src="slika.png">
Image: src="slika.png"
Meta tag.
Multicol is ignored by doxygen.
- List item 1.
- List item 2.
Starts a new paragraph.
Starts a preformatted fragment.
@ -185,42 +189,47 @@ r"""
Starts a section of text displayed in a smaller font.
'Starts an inline text fragment with a specific style.'
__Starts a section of bold text.__
Starts a piece of text displayed in subscript.
Starts a piece of text displayed in superscript.
Animals
| Column 1 | Column 2 |
-----------------------
| cow | dog |
| cat | mouse |
| horse | parrot |
Starts a piece of text displayed in a typewriter font.
Starts a piece of text displayed in a typewriter font.
- List item 1.
- List item 2.
- List item 3.
_Starts a piece of text displayed in an italic font._
<u>underlined \b bold text - doxy commands are ignored inside 'htmlonly' section </u>
""")
commentVerifier.check(doxygen_translate.htmlEntitiesFunction.__doc__,
r"""
All entities are treated as commands (C); TM (R);
All entities are treated as commands (C) TM (R)
should work also<in text
>
&
'
"
'
`
'
"
"
@ -235,6 +244,6 @@ r"""
>=
<--
-->
Not an html entity - ignored by Doxygen.
Not an html entity - ignored by Doxygen.
Not an &text html entity - ampersand is replaced with entity.
""")