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
9
vendor/plugins/maruku/tests/unittest/encoding/iso-8859-1.html
vendored
Normal file
9
vendor/plugins/maruku/tests/unittest/encoding/iso-8859-1.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>This is iso-8859-1: à èìà ù.</p>
|
||||
</body></html>
|
38
vendor/plugins/maruku/tests/unittest/encoding/iso-8859-1.md
vendored
Normal file
38
vendor/plugins/maruku/tests/unittest/encoding/iso-8859-1.md
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
Encoding: iso-8859-1
|
||||
|
||||
*** Parameters: ***
|
||||
{}
|
||||
*** Markdown input: ***
|
||||
Encoding: iso-8859-1
|
||||
|
||||
This is iso-8859-1: àèìàù.
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_par([
|
||||
"This is iso-8859-1: \303\203\302\240\303\203\302\250\303\203\302\254\303\203\302\240\303\203\302\271."
|
||||
])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<p>This is iso-8859-1: à èìà ù.</p>
|
||||
*** Output of to_latex ***
|
||||
This is iso-8859-1: à èìà ù.
|
||||
*** Output of to_md ***
|
||||
This is iso-8859-1:
|
||||
à èìà ù.
|
||||
*** Output of to_s ***
|
||||
This is iso-8859-1: à èìà ù.
|
||||
*** EOF ***
|
||||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p>Encoding: iso-8859-1</p>
|
||||
|
||||
<p>This is iso-8859-1: àèìàù.</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
9
vendor/plugins/maruku/tests/unittest/encoding/utf-8.html
vendored
Normal file
9
vendor/plugins/maruku/tests/unittest/encoding/utf-8.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>Japanese: マルク</p>
|
||||
</body></html>
|
33
vendor/plugins/maruku/tests/unittest/encoding/utf-8.md
vendored
Normal file
33
vendor/plugins/maruku/tests/unittest/encoding/utf-8.md
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
Write a comment abouth the test here.
|
||||
*** Parameters: ***
|
||||
{:italian=>"\303\240\303\250\303\254\303\262\303\271."}
|
||||
*** Markdown input: ***
|
||||
Italian: àèìòù.
|
||||
|
||||
Japanese: マルク
|
||||
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[md_par(["Japanese: \343\203\236\343\203\253\343\202\257"])],{},[])
|
||||
*** Output of to_html ***
|
||||
<p>Japanese: マルク</p>
|
||||
*** Output of to_latex ***
|
||||
Japanese: マルク
|
||||
*** Output of to_md ***
|
||||
Japanese: マルク
|
||||
*** Output of to_s ***
|
||||
Japanese: マルク
|
||||
*** EOF ***
|
||||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p>Italian: àèìòù.</p>
|
||||
|
||||
<p>Japanese: マルク</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