aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArtem Yunusov <nedrlab@gmail.com>2008-07-31 03:06:39 +0500
committerArtem Yunusov <nedrlab@gmail.com>2008-07-31 03:06:39 +0500
commitbd185087dc899b6157f821fdd29561caffcc4682 (patch)
treedb9445d13bdbd59fb999664462031d3630e0ffb0 /tests
parentc99366a182afa3b0cd8da12075cd9ff8e15ae089 (diff)
downloadmarkdown-bd185087dc899b6157f821fdd29561caffcc4682.tar.gz
markdown-bd185087dc899b6157f821fdd29561caffcc4682.tar.bz2
markdown-bd185087dc899b6157f821fdd29561caffcc4682.zip
A lot of bug fixes, added ElementTree support for extensions, some new tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/extensions-x-footnotes/footnote.html82
-rwxr-xr-xtests/markdown-test/angle-links-and-img.html7
-rwxr-xr-xtests/markdown-test/angle-links-and-img.txt4
-rwxr-xr-xtests/misc/blockquote-below-paragraph.html6
-rwxr-xr-xtests/misc/blockquote-below-paragraph.txt3
-rwxr-xr-xtests/misc/html-comments.html2
-rwxr-xr-xtests/misc/html-comments.txt2
7 files changed, 66 insertions, 40 deletions
diff --git a/tests/extensions-x-footnotes/footnote.html b/tests/extensions-x-footnotes/footnote.html
index de0070d..4a844be 100644
--- a/tests/extensions-x-footnotes/footnote.html
+++ b/tests/extensions-x-footnotes/footnote.html
@@ -1,40 +1,42 @@
-<p>This is the body with a footnote<sup id="fnr1-5771256"><a href="#fn1-5771256">1</a></sup> or two<sup id="fnr2-5771256"><a href="#fn2-5771256">2</a></sup> or more<sup id="fnr3-5771256"><a href="#fn3-5771256">3</a></sup> <sup id="fnr4-5771256"><a href="#fn4-5771256">4</a></sup>.
-</p>
-
-<div class="footnote"><hr/><ol>
- <li id="fn1-5771256"><p>Footnote that ends with a list:
-</p>
-<ul>
- <li>
- item 1
- </li>
-
- <li>
- item 2
- </li>
-</ul>
-<p><a href="#fnr1-5771256" class="footnoteBackLink" title="Jump back to footnote 1 in the text">&#8617;</a>
-</p>
-
- </li>
-
- <li id="fn2-5771256"><blockquote><p>This footnote is a blockquote.
-</p>
-</blockquote><p><a href="#fnr2-5771256" class="footnoteBackLink" title="Jump back to footnote 2 in the text">&#8617;</a>
-</p>
-
- </li>
-
- <li id="fn3-5771256"><p>A simple oneliner.<a href="#fnr3-5771256" class="footnoteBackLink" title="Jump back to footnote 3 in the text">&#8617;</a>
-</p>
-
- </li>
-
- <li id="fn4-5771256"><p>A footnote with multiple paragraphs.
-</p>
-<p>Paragraph two.<a href="#fnr4-5771256" class="footnoteBackLink" title="Jump back to footnote 4 in the text">&#8617;</a>
-</p>
-
- </li>
-</ol>
-</div> \ No newline at end of file
+<p>This is the body with a footnote<sup id="fnr1-506476047">
+ <a href="#fn1-506476047">1</a>
+ </sup> or two<sup id="fnr2-506476047">
+ <a href="#fn2-506476047">2</a>
+ </sup> or more<sup id="fnr3-506476047">
+ <a href="#fn3-506476047">3</a>
+ </sup>
+ <sup id="fnr4-506476047">
+ <a href="#fn4-506476047">4</a>
+ </sup>.</p>
+<div class="footnote">
+ <hr />
+ <ol>
+ <li id="fn1-506476047">
+ <p>Footnote that ends with a list:</p>
+ <ul>
+ <li>item 1</li>
+ <li>item 2</li>
+ </ul>
+ <p>
+ <a class="footnoteBackLink" href="#fnr1-506476047" title="Jump back to footnote 1 in the text">&#8617;</a>
+ </p>
+ </li>
+ <li id="fn2-506476047">
+ <blockquote>
+ <p>This footnote is a blockquote.</p>
+ </blockquote>
+ <p>
+ <a class="footnoteBackLink" href="#fnr2-506476047" title="Jump back to footnote 2 in the text">&#8617;</a>
+ </p>
+ </li>
+ <li id="fn3-506476047">
+ <p>A simple oneliner.<a class="footnoteBackLink" href="#fnr3-506476047" title="Jump back to footnote 3 in the text">&#8617;</a>
+ </p>
+ </li>
+ <li id="fn4-506476047">
+ <p>A footnote with multiple paragraphs.</p>
+ <p>Paragraph two.<a class="footnoteBackLink" href="#fnr4-506476047" title="Jump back to footnote 4 in the text">&#8617;</a>
+ </p>
+ </li>
+ </ol>
+</div>
diff --git a/tests/markdown-test/angle-links-and-img.html b/tests/markdown-test/angle-links-and-img.html
new file mode 100755
index 0000000..e32b6e6
--- /dev/null
+++ b/tests/markdown-test/angle-links-and-img.html
@@ -0,0 +1,7 @@
+<p>
+ <a href="simple link" title="title">link</a>
+ <img alt="image" src="http://example.com/image.jpg" />
+ <a href="http://example.com/(()((())923)(">link</a>
+ <img alt="image" src="link(()))(" />
+</p>
+
diff --git a/tests/markdown-test/angle-links-and-img.txt b/tests/markdown-test/angle-links-and-img.txt
new file mode 100755
index 0000000..1dbf404
--- /dev/null
+++ b/tests/markdown-test/angle-links-and-img.txt
@@ -0,0 +1,4 @@
+[link](<simple link> "title")
+![image](<http://example.com/image.jpg>)
+[link](<http://example.com/(()((())923)(>)
+![image](<link(()))(>)
diff --git a/tests/misc/blockquote-below-paragraph.html b/tests/misc/blockquote-below-paragraph.html
new file mode 100755
index 0000000..5757a9a
--- /dev/null
+++ b/tests/misc/blockquote-below-paragraph.html
@@ -0,0 +1,6 @@
+<p>Paragraph</p>
+<blockquote>
+ <p>Block quote
+Yep</p>
+</blockquote>
+
diff --git a/tests/misc/blockquote-below-paragraph.txt b/tests/misc/blockquote-below-paragraph.txt
new file mode 100755
index 0000000..0dd4d5c
--- /dev/null
+++ b/tests/misc/blockquote-below-paragraph.txt
@@ -0,0 +1,3 @@
+Paragraph
+>Block quote
+>Yep
diff --git a/tests/misc/html-comments.html b/tests/misc/html-comments.html
new file mode 100755
index 0000000..ac08082
--- /dev/null
+++ b/tests/misc/html-comments.html
@@ -0,0 +1,2 @@
+<p>Here is HTML <!-- **comment** -->
+and once more <p><!--comment--></p></p>
diff --git a/tests/misc/html-comments.txt b/tests/misc/html-comments.txt
new file mode 100755
index 0000000..cac4da5
--- /dev/null
+++ b/tests/misc/html-comments.txt
@@ -0,0 +1,2 @@
+Here is HTML <!-- **comment** -->
+and once more <p><!--comment--></p>