Browse Source

Moved crash tests to separate file & added missed ones

pull/41/head
Vitaly Puzrin 10 years ago
parent
commit
4ca2d3b888
  1. 9
      test/fixtures/markdown-it/commonmark_extras.txt
  2. 26
      test/fixtures/markdown-it/fatal.txt

9
test/fixtures/markdown-it/commonmark_extras.txt

@ -106,16 +106,7 @@ Autolinks do not allow escaping:
.
Should not throw exception on mailformed URI
.
[foo](<&#x25;test>)
.
<p><a href="%25test">foo</a></p>
.
Multiline title in definitions:
.
[foo]: test '
1

26
test/fixtures/markdown-it/fatal.txt

@ -0,0 +1,26 @@
Should not throw exception on mailformed URI
.
[foo](<&#x25;test>)
.
<p><a href="%25test">foo</a></p>
.
Should not hang comments regexp
.
foo <!--- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ->
foo <!------------------------------------------------------------------->
.
<p>foo &lt;!— xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -&gt;</p>
<p>foo &lt;!-------------------------------------------------------------------&gt;</p>
.
Should not hang cdata regexp
.
foo <![CDATA[ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ]>
.
<p>foo &lt;![CDATA[ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ]&gt;</p>
.
Loading…
Cancel
Save