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
13
vendor/plugins/maruku/tests/unittest/paragraph_rules/dont_merge_ref.html
vendored
Normal file
13
vendor/plugins/maruku/tests/unittest/paragraph_rules/dont_merge_ref.html
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?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>
|
||||
|
||||
<p>Paragraph</p>
|
||||
|
||||
<p>Paragraph</p>
|
||||
</body></html>
|
57
vendor/plugins/maruku/tests/unittest/paragraph_rules/dont_merge_ref.md
vendored
Normal file
57
vendor/plugins/maruku/tests/unittest/paragraph_rules/dont_merge_ref.md
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
Paragraphs eats everything, but not link definitions.
|
||||
*** Parameters: ***
|
||||
{}
|
||||
*** Markdown input: ***
|
||||
Paragraph
|
||||
[google1]: #
|
||||
|
||||
Paragraph
|
||||
[google2]: #
|
||||
|
||||
Paragraph
|
||||
[google3]: #
|
||||
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_par(["Paragraph"]),
|
||||
md_ref_def("google1", "#", {:title=>nil}),
|
||||
md_par(["Paragraph"]),
|
||||
md_ref_def("google2", "#", {:title=>nil}),
|
||||
md_par(["Paragraph"]),
|
||||
md_ref_def("google3", "#", {:title=>nil})
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<p>Paragraph</p>
|
||||
|
||||
<p>Paragraph</p>
|
||||
|
||||
<p>Paragraph</p>
|
||||
*** Output of to_latex ***
|
||||
Paragraph
|
||||
|
||||
Paragraph
|
||||
|
||||
Paragraph
|
||||
*** Output of to_md ***
|
||||
Paragraph
|
||||
|
||||
Paragraph
|
||||
|
||||
Paragraph
|
||||
*** Output of to_s ***
|
||||
ParagraphParagraphParagraph
|
||||
*** EOF ***
|
||||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p>Paragraph
|
||||
Paragraph
|
||||
Paragraph</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
11
vendor/plugins/maruku/tests/unittest/paragraph_rules/tab_is_blank.html
vendored
Normal file
11
vendor/plugins/maruku/tests/unittest/paragraph_rules/tab_is_blank.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>Paragraph1</p>
|
||||
|
||||
<p>Paragraph2</p>
|
||||
</body></html>
|
39
vendor/plugins/maruku/tests/unittest/paragraph_rules/tab_is_blank.md
vendored
Normal file
39
vendor/plugins/maruku/tests/unittest/paragraph_rules/tab_is_blank.md
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
Paragraphs eat blank lines.
|
||||
The following are two paragraphs:
|
||||
*** Parameters: ***
|
||||
{}
|
||||
*** Markdown input: ***
|
||||
Paragraph1
|
||||
|
||||
Paragraph2
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[md_par(["Paragraph1"]), md_par(["Paragraph2"])],{},[])
|
||||
*** Output of to_html ***
|
||||
<p>Paragraph1</p>
|
||||
|
||||
<p>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</p>
|
||||
|
||||
<p>Paragraph2</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