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:
parent
ebc409e1a0
commit
1085168bbf
337 changed files with 21290 additions and 72 deletions
7
vendor/plugins/maruku/tests/unittest/attributes/att2.html
vendored
Normal file
7
vendor/plugins/maruku/tests/unittest/attributes/att2.html
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?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 /></html>
|
34
vendor/plugins/maruku/tests/unittest/attributes/att2.md
vendored
Normal file
34
vendor/plugins/maruku/tests/unittest/attributes/att2.md
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
*** Parameters: ***
|
||||
{}
|
||||
*** Markdown input: ***
|
||||
{a}: a
|
||||
{:b: a}
|
||||
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_el(:ald,[],{:ald=>[[:ref, "a"]],:ald_id=>"a"},[]),
|
||||
md_el(:ald,[],{:ald=>[[:ref, "a"]],:ald_id=>"b"},[])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
|
||||
*** Output of to_latex ***
|
||||
|
||||
*** Output of to_md ***
|
||||
|
||||
*** Output of to_s ***
|
||||
|
||||
*** EOF ***
|
||||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p>{a}: a
|
||||
{:b: a}</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
11
vendor/plugins/maruku/tests/unittest/attributes/att3.html
vendored
Normal file
11
vendor/plugins/maruku/tests/unittest/attributes/att3.html
vendored
Normal 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 id='par1'>Paragraph1</p>
|
||||
|
||||
<p id='par2'>Paragraph2</p>
|
||||
</body></html>
|
45
vendor/plugins/maruku/tests/unittest/attributes/att3.md
vendored
Normal file
45
vendor/plugins/maruku/tests/unittest/attributes/att3.md
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
IALs can refer to element before or after.
|
||||
*** Parameters: ***
|
||||
{}
|
||||
*** Markdown input: ***
|
||||
Paragraph1
|
||||
{:#par1}
|
||||
|
||||
{:#par2}
|
||||
Paragraph2
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_par(["Paragraph1"], [[:id, "par1"]]),
|
||||
md_par(["Paragraph2"], [[:id, "par2"]])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<p id='par1'>Paragraph1</p>
|
||||
|
||||
<p id='par2'>Paragraph2</p>
|
||||
*** Output of to_latex ***
|
||||
Paragraph1
|
||||
|
||||
Paragraph2
|
||||
*** Output of to_md ***
|
||||
Paragraph1
|
||||
|
||||
Paragraph2
|
||||
*** Output of to_s ***
|
||||
Paragraph1Paragraph2
|
||||
*** EOF ***
|
||||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p>Paragraph1
|
||||
{:#par1}</p>
|
||||
|
||||
<p>{:#par2}
|
||||
Paragraph2</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
17
vendor/plugins/maruku/tests/unittest/attributes/attributes.html
vendored
Normal file
17
vendor/plugins/maruku/tests/unittest/attributes/attributes.html
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?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>
|
||||
<h2 id='header1'>Header with attributes</h2>
|
||||
|
||||
<h3 id='header2'>Header with attributes</h3>
|
||||
|
||||
<h3 id='header_no_attributes'>Header no attributes</h3>
|
||||
|
||||
<p id='par1'>Paragraph with a.</p>
|
||||
|
||||
<p id='par2'>Paragraph with <em class='chello'>emphasis</em></p>
|
||||
</body></html>
|
82
vendor/plugins/maruku/tests/unittest/attributes/attributes.md
vendored
Normal file
82
vendor/plugins/maruku/tests/unittest/attributes/attributes.md
vendored
Normal file
|
@ -0,0 +1,82 @@
|
|||
This is a simple test for attributes
|
||||
*** Parameters: ***
|
||||
{}
|
||||
*** Markdown input: ***
|
||||
|
||||
Header with attributes {#header1}
|
||||
----------------------
|
||||
|
||||
### Header with attributes ### {#header2}
|
||||
|
||||
### Header no attributes ###
|
||||
|
||||
{:warn2}Paragraph with a.
|
||||
{#par1}
|
||||
|
||||
Paragraph with *emphasis*{:hello notfound}
|
||||
{#par2}
|
||||
|
||||
{:hello: .chello}
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_el(:header,["Header with attributes"],{:level=>2},[[:id, "header1"]]),
|
||||
md_el(:header,["Header with attributes"],{:level=>3},[[:id, "header2"]]),
|
||||
md_el(:header,["Header no attributes"],{:level=>3},[]),
|
||||
md_par(["Paragraph with a."], [[:id, "par1"]]),
|
||||
md_par([
|
||||
"Paragraph with ",
|
||||
md_em(["emphasis"], [[:ref, "hello"], [:ref, "notfound"]])
|
||||
], [[:id, "par2"]]),
|
||||
md_el(:ald,[],{:ald=>[[:class, "chello"]],:ald_id=>"hello"},[])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<h2 id='header1'>Header with attributes</h2>
|
||||
|
||||
<h3 id='header2'>Header with attributes</h3>
|
||||
|
||||
<h3 id='header_no_attributes'>Header no attributes</h3>
|
||||
|
||||
<p id='par1'>Paragraph with a.</p>
|
||||
|
||||
<p id='par2'>Paragraph with <em class='chello'>emphasis</em></p>
|
||||
*** Output of to_latex ***
|
||||
\hypertarget{header1}{}\subsection*{{Header with attributes}}\label{header1}
|
||||
|
||||
\hypertarget{header2}{}\subsubsection*{{Header with attributes}}\label{header2}
|
||||
|
||||
\hypertarget{header_no_attributes}{}\subsubsection*{{Header no attributes}}\label{header_no_attributes}
|
||||
|
||||
Paragraph with a.
|
||||
|
||||
Paragraph with \emph{emphasis}
|
||||
*** Output of to_md ***
|
||||
Header with attributesHeader with attributesHeader no attributesParagraph with a.
|
||||
|
||||
Paragraph with emphasis
|
||||
*** Output of to_s ***
|
||||
Header with attributesHeader with attributesHeader no attributesParagraph with a.Paragraph with emphasis
|
||||
*** EOF ***
|
||||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<h2>Header with attributes {#header1} </h2>
|
||||
|
||||
<h3>Header with attributes ### {#header2}</h3>
|
||||
|
||||
<h3>Header no attributes</h3>
|
||||
|
||||
<p>{:warn2}Paragraph with a.
|
||||
{#par1}</p>
|
||||
|
||||
<p>Paragraph with <em>emphasis</em>{:hello notfound}
|
||||
{#par2}</p>
|
||||
|
||||
<p>{:hello: .chello}</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
9
vendor/plugins/maruku/tests/unittest/attributes/circular.html
vendored
Normal file
9
vendor/plugins/maruku/tests/unittest/attributes/circular.html
vendored
Normal 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>Paragraph</p>
|
||||
</body></html>
|
43
vendor/plugins/maruku/tests/unittest/attributes/circular.md
vendored
Normal file
43
vendor/plugins/maruku/tests/unittest/attributes/circular.md
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
|
||||
*** Parameters: ***
|
||||
{}
|
||||
*** Markdown input: ***
|
||||
|
||||
Paragraph
|
||||
{:a}
|
||||
|
||||
|
||||
{:a: b}
|
||||
{:b: a}
|
||||
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_par(["Paragraph"], [[:ref, "a"]]),
|
||||
md_el(:ald,[],{:ald=>[[:ref, "b"]],:ald_id=>"a"},[]),
|
||||
md_el(:ald,[],{:ald=>[[:ref, "a"]],:ald_id=>"b"},[])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<p>Paragraph</p>
|
||||
*** Output of to_latex ***
|
||||
Paragraph
|
||||
*** Output of to_md ***
|
||||
Paragraph
|
||||
*** Output of to_s ***
|
||||
Paragraph
|
||||
*** EOF ***
|
||||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p>Paragraph
|
||||
{:a}</p>
|
||||
|
||||
<p>{:a: b}
|
||||
{:b: a}</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
9
vendor/plugins/maruku/tests/unittest/attributes/default.html
vendored
Normal file
9
vendor/plugins/maruku/tests/unittest/attributes/default.html
vendored
Normal 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 class='maruku-par' id='2'>Paragraph2</p>
|
||||
</body></html>
|
38
vendor/plugins/maruku/tests/unittest/attributes/default.md
vendored
Normal file
38
vendor/plugins/maruku/tests/unittest/attributes/default.md
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
This shows the use of default attributes list.
|
||||
*** Parameters: ***
|
||||
{}
|
||||
*** Markdown input: ***
|
||||
Paragraph2
|
||||
{#2}
|
||||
|
||||
{paragraph}: .maruku-par
|
||||
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_par(["Paragraph2"], [[:id, "2"]]),
|
||||
md_el(:ald,[],{:ald=>[[:class, "maruku-par"]],:ald_id=>"paragraph"},[])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<p class='maruku-par' id='2'>Paragraph2</p>
|
||||
*** Output of to_latex ***
|
||||
Paragraph2
|
||||
*** Output of to_md ***
|
||||
Paragraph2
|
||||
*** Output of to_s ***
|
||||
Paragraph2
|
||||
*** EOF ***
|
||||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p>Paragraph2
|
||||
{#2}</p>
|
||||
|
||||
<p>{paragraph}: .maruku-par</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
Loading…
Add table
Add a link
Reference in a new issue