Update to latest HTML5lib, Add Maruku testdir

Sync with the latest html5lib.
Having the Maruku unit tests on-hand may be useful for debugging; so let's include them.
This commit is contained in:
Jacques Distler 2008-01-08 00:01:35 -06:00
parent ebc409e1a0
commit 1085168bbf
337 changed files with 21290 additions and 72 deletions

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p><code>\\</code></p>
<p><code>\</code></p>
</body></html>

View file

@ -0,0 +1,36 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
`\\`
`\`
*** Output of inspect ***
md_el(:document,[md_par([md_code("\\\\")]), md_par([md_code("\\")])],{},[])
*** Output of to_html ***
<p><code>\\</code></p>
<p><code>\</code></p>
*** Output of to_latex ***
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char92\char92}}
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char92}}
*** Output of to_md ***
*** Output of to_s ***
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p><code>\\</code></p>
<p><code>\</code></p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title>header</title></head>
<body>
<p>Paragraph</p>
<h3 id='header'>header</h3>
<p>Paragraph</p>
<h2 id='header'>header</h2>
<p>Paragraph</p>
<h1 id='header'>header</h1>
</body></html>

View file

@ -0,0 +1,81 @@
Write a comment abouth the test here.
*** Parameters: ***
{:title=>"header"}
*** Markdown input: ***
Paragraph
### header ###
Paragraph
header
------
Paragraph
header
======
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph"]),
md_el(:header,["header"],{:level=>3},[]),
md_par(["Paragraph"]),
md_el(:header,["header"],{:level=>2},[]),
md_par(["Paragraph"]),
md_el(:header,["header"],{:level=>1},[])
],{},[])
*** Output of to_html ***
<p>Paragraph</p>
<h3 id='header'>header</h3>
<p>Paragraph</p>
<h2 id='header'>header</h2>
<p>Paragraph</p>
<h1 id='header'>header</h1>
*** Output of to_latex ***
Paragraph
\hypertarget{header}{}\subsubsection*{{header}}\label{header}
Paragraph
\hypertarget{header}{}\subsection*{{header}}\label{header}
Paragraph
\hypertarget{header}{}\section*{{header}}\label{header}
*** Output of to_md ***
Paragraph
headerParagraph
headerParagraph
header
*** Output of to_s ***
ParagraphheaderParagraphheaderParagraphheader
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Paragraph</p>
<h3>header</h3>
<p>Paragraph</p>
<h2>header</h2>
<p>Paragraph</p>
<h1>header</h1>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p><code>There is a literal backtick (`) here.</code></p>
</body></html>

View file

@ -0,0 +1,31 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
``There is a literal backtick (`) here.``
*** Output of inspect ***
md_el(:document,[md_par([md_code("There is a literal backtick (`) here.")])],{},[])
*** Output of to_html ***
<p><code>There is a literal backtick (`) here.</code></p>
*** Output of to_latex ***
{\colorbox[rgb]{1.00,0.93,1.00}{\tt There~is~a~literal~backtick~\char40\char96\char41~here\char46}}
*** Output of to_md ***
*** Output of to_s ***
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p><code>There is a literal backtick (`) here.</code></p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>Paragraph, list with no space: * ciao</p>
<p>Paragraph, list with 1 space: * ciao</p>
<p>Paragraph, list with 3 space: * ciao</p>
<p>Paragraph, list with 4 spaces: * ciao</p>
<p>Paragraph, list with 1 tab: * ciao</p>
<p>Paragraph (1 space after), list with no space: * ciao</p>
<p>Paragraph (2 spaces after), list with no space:<br />* ciao</p>
<p>Paragraph (3 spaces after), list with no space: <br />* ciao</p>
<p>Paragraph with block quote:</p>
<blockquote>
<p>Quoted</p>
</blockquote>
<p>Paragraph with header:</p>
<h3 id='header'>header</h3>
<p>Paragraph with header on two lines:</p>
<h2 id='header'>header</h2>
</body></html>

View file

@ -0,0 +1,206 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
Paragraph, list with no space:
* ciao
Paragraph, list with 1 space:
* ciao
Paragraph, list with 3 space:
* ciao
Paragraph, list with 4 spaces:
* ciao
Paragraph, list with 1 tab:
* ciao
Paragraph (1 space after), list with no space:
* ciao
Paragraph (2 spaces after), list with no space:
* ciao
Paragraph (3 spaces after), list with no space:
* ciao
Paragraph with block quote:
> Quoted
Paragraph with header:
### header ###
Paragraph with header on two lines:
header
------
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph, list with no space: * ciao"]),
md_par(["Paragraph, list with 1 space: * ciao"]),
md_par(["Paragraph, list with 3 space: * ciao"]),
md_par(["Paragraph, list with 4 spaces: * ciao"]),
md_par(["Paragraph, list with 1 tab: * ciao"]),
md_par(["Paragraph (1 space after), list with no space: * ciao"]),
md_par([
"Paragraph (2 spaces after), list with no space:",
md_el(:linebreak,[],{},[]),
"* ciao"
]),
md_par([
"Paragraph (3 spaces after), list with no space: ",
md_el(:linebreak,[],{},[]),
"* ciao"
]),
md_par(["Paragraph with block quote:"]),
md_el(:quote,[md_par(["Quoted"])],{},[]),
md_par(["Paragraph with header:"]),
md_el(:header,["header"],{:level=>3},[]),
md_par(["Paragraph with header on two lines:"]),
md_el(:header,["header"],{:level=>2},[])
],{},[])
*** Output of to_html ***
<p>Paragraph, list with no space: * ciao</p>
<p>Paragraph, list with 1 space: * ciao</p>
<p>Paragraph, list with 3 space: * ciao</p>
<p>Paragraph, list with 4 spaces: * ciao</p>
<p>Paragraph, list with 1 tab: * ciao</p>
<p>Paragraph (1 space after), list with no space: * ciao</p>
<p>Paragraph (2 spaces after), list with no space:<br />* ciao</p>
<p>Paragraph (3 spaces after), list with no space: <br />* ciao</p>
<p>Paragraph with block quote:</p>
<blockquote>
<p>Quoted</p>
</blockquote>
<p>Paragraph with header:</p>
<h3 id='header'>header</h3>
<p>Paragraph with header on two lines:</p>
<h2 id='header'>header</h2>
*** Output of to_latex ***
Paragraph, list with no space: * ciao
Paragraph, list with 1 space: * ciao
Paragraph, list with 3 space: * ciao
Paragraph, list with 4 spaces: * ciao
Paragraph, list with 1 tab: * ciao
Paragraph (1 space after), list with no space: * ciao
Paragraph (2 spaces after), list with no space:\newline * ciao
Paragraph (3 spaces after), list with no space: \newline * ciao
Paragraph with block quote:
\begin{quote}%
Quoted
\end{quote}
Paragraph with header:
\hypertarget{header}{}\subsubsection*{{header}}\label{header}
Paragraph with header on two lines:
\hypertarget{header}{}\subsection*{{header}}\label{header}
*** Output of to_md ***
Paragraph, list with no space: * ciao
Paragraph, list with 1 space: * ciao
Paragraph, list with 3 space: * ciao
Paragraph, list with 4 spaces: * ciao
Paragraph, list with 1 tab: * ciao
Paragraph (1 space after), list with no
space: * ciao
Paragraph (2 spaces after), list with
no space:
* ciao
Paragraph (3 spaces after), list with
no space:
* ciao
Paragraph with block quote:
Quoted
Paragraph with header:
headerParagraph with header on two lines:
header
*** Output of to_s ***
Paragraph, list with no space: * ciaoParagraph, list with 1 space: * ciaoParagraph, list with 3 space: * ciaoParagraph, list with 4 spaces: * ciaoParagraph, list with 1 tab: * ciaoParagraph (1 space after), list with no space: * ciaoParagraph (2 spaces after), list with no space:* ciaoParagraph (3 spaces after), list with no space: * ciaoParagraph with block quote:QuotedParagraph with header:headerParagraph with header on two lines:header
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Paragraph, list with no space:
* ciao</p>
<p>Paragraph, list with 1 space:
* ciao</p>
<p>Paragraph, list with 3 space:
* ciao</p>
<p>Paragraph, list with 4 spaces:
* ciao</p>
<p>Paragraph, list with 1 tab:
* ciao</p>
<p>Paragraph (1 space after), list with no space:
* ciao</p>
<p>Paragraph (2 spaces after), list with no space: <br />
* ciao</p>
<p>Paragraph (3 spaces after), list with no space: <br />
* ciao</p>
<p>Paragraph with block quote:</p>
<blockquote>
<p>Quoted</p>
</blockquote>
<p>Paragraph with header:</p>
<h3>header</h3>
<p>Paragraph with header on two lines:</p>
<h2>header</h2>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>