From 32e16c04a17c6ebf3c6ab1a9a7a3ab0d2bacbbac Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 21 Aug 2011 20:29:51 -0500 Subject: [PATCH] html tests --- test/tests/inline_html_advanced.html | 15 ++++++ test/tests/inline_html_advanced.text | 15 ++++++ test/tests/inline_html_comments.html | 13 +++++ test/tests/inline_html_comments.text | 13 +++++ test/tests/inline_html_simple.html | 72 ++++++++++++++++++++++++++++ test/tests/inline_html_simple.text | 69 ++++++++++++++++++++++++++ 6 files changed, 197 insertions(+) create mode 100644 test/tests/inline_html_advanced.html create mode 100644 test/tests/inline_html_advanced.text create mode 100644 test/tests/inline_html_comments.html create mode 100644 test/tests/inline_html_comments.text create mode 100644 test/tests/inline_html_simple.html create mode 100644 test/tests/inline_html_simple.text diff --git a/test/tests/inline_html_advanced.html b/test/tests/inline_html_advanced.html new file mode 100644 index 00000000..35952cc1 --- /dev/null +++ b/test/tests/inline_html_advanced.html @@ -0,0 +1,15 @@ +

Simple block on one line:

+ +
foo
+ +

And nested without indentation:

+ +
+
+
+foo +
+
+
+
bar
+
diff --git a/test/tests/inline_html_advanced.text b/test/tests/inline_html_advanced.text new file mode 100644 index 00000000..f3822443 --- /dev/null +++ b/test/tests/inline_html_advanced.text @@ -0,0 +1,15 @@ +Simple block on one line: + +
foo
+ +And nested without indentation: + +
+
+
+foo +
+
+
+
bar
+
diff --git a/test/tests/inline_html_comments.html b/test/tests/inline_html_comments.html new file mode 100644 index 00000000..3f167a16 --- /dev/null +++ b/test/tests/inline_html_comments.html @@ -0,0 +1,13 @@ +

Paragraph one.

+ + + + + +

Paragraph two.

+ + + +

The end.

diff --git a/test/tests/inline_html_comments.text b/test/tests/inline_html_comments.text new file mode 100644 index 00000000..41d830d0 --- /dev/null +++ b/test/tests/inline_html_comments.text @@ -0,0 +1,13 @@ +Paragraph one. + + + + + +Paragraph two. + + + +The end. diff --git a/test/tests/inline_html_simple.html b/test/tests/inline_html_simple.html new file mode 100644 index 00000000..31613db3 --- /dev/null +++ b/test/tests/inline_html_simple.html @@ -0,0 +1,72 @@ +

Here's a simple block:

+ +
+ foo +
+ +

This should be a code block, though:

+ +
<div>
+    foo
+</div>
+
+ +

As should this:

+ +
<div>foo</div>
+
+ +

Now, nested:

+ +
+
+
+ foo +
+
+
+ +

This should just be an HTML comment:

+ + + +

Multiline:

+ + + +

Code block:

+ +
<!-- Comment -->
+
+ +

Just plain comment, with trailing spaces on the line:

+ + + +

Code:

+ +
<hr>
+
+ +

Hr's:

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
diff --git a/test/tests/inline_html_simple.text b/test/tests/inline_html_simple.text new file mode 100644 index 00000000..df49d7bf --- /dev/null +++ b/test/tests/inline_html_simple.text @@ -0,0 +1,69 @@ +Here's a simple block: + +
+ foo +
+ +This should be a code block, though: + +
+ foo +
+ +As should this: + +
foo
+ +Now, nested: + +
+
+
+ foo +
+
+
+ +This should just be an HTML comment: + + + +Multiline: + + + +Code block: + + + +Just plain comment, with trailing spaces on the line: + + + +Code: + +
+ +Hr's: + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+