diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-08-09 16:51:08 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-08-09 16:51:08 +0000 |
commit | 5d3d2d79b3e217e3b420e3d56c5e844e5cae5cf1 (patch) | |
tree | 2cb5278f22b77842d177a6c8cd374bd515a7c0a4 /tests/writer.docbook | |
parent | f1914c21b7dd62cc65e9c4ac20d70986bddd8775 (diff) |
Rewrote test suite so it doesn't depend on perl or unix tools.
+ Replaced old runtests.pl with a Haskell script RunTests.hs.
+ Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
+ Added test hook to Setup.hs, so tests may be run from cabal.
+ Changed Makefile's 'test' target to run tests via cabal.
+ Removed old generate.sh.
+ Since we no longer have 'sed' to filter out raw HTML sections
from the docbook writer test, or raw LaTeX sections from the
context writer test, we now just include these sections.
They can be taken out if it is necessary to process the files.
+ Updated latex and context writer tests to remove extra spaces
after '\\item'
+ Added a markdown table reader test.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1385 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests/writer.docbook')
-rw-r--r-- | tests/writer.docbook | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/tests/writer.docbook b/tests/writer.docbook index 424141cc9..d2bcac18d 100644 --- a/tests/writer.docbook +++ b/tests/writer.docbook @@ -758,6 +758,135 @@ These should not be escaped: \$ \\ \> \[ \{ </variablelist> </section> <section> + <title>HTML Blocks</title> + <para> + Simple block on one line: + </para> + <div> + foo + </div> + + <para> + And nested without indentation: + </para> + <div> +<div> +<div> + foo + </div> +</div> +<div> + bar + </div> +</div> + + <para> + Interpreted markdown in a table: + </para> + <table> +<tr> +<td> + This is <emphasis>emphasized</emphasis> + </td> +<td> + And this is <emphasis role="strong">strong</emphasis> + </td> +</tr> +</table> + +<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script> + + <para> + Here's a simple block: + </para> + <div> + + foo + </div> + + <para> + This should be a code block, though: + </para> + <screen> +<div> + foo +</div> +</screen> + <para> + As should this: + </para> + <screen> +<div>foo</div> +</screen> + <para> + Now, nested: + </para> + <div> + <div> + <div> + + foo + </div> + </div> +</div> + + <para> + This should just be an HTML comment: + </para> + <!-- Comment --> + + <para> + Multiline: + </para> + <!-- +Blah +Blah +--> + +<!-- + This is another comment. +--> + + <para> + Code block: + </para> + <screen> +<!-- Comment --> +</screen> + <para> + Just plain comment, with trailing spaces on the line: + </para> + <!-- foo --> + + <para> + Code: + </para> + <screen> +<hr /> +</screen> + <para> + Hr's: + </para> + <hr> + +<hr /> + +<hr /> + +<hr> + +<hr /> + +<hr /> + +<hr class="foo" id="bar" /> + +<hr class="foo" id="bar" /> + +<hr class="foo" id="bar"> + + </section> + <section> <title>Inline Markup</title> <para> This is <emphasis>emphasized</emphasis>, and so |