aboutsummaryrefslogtreecommitdiffstats
path: root/tests/options
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2014-08-20 14:32:09 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2014-08-20 14:32:09 -0400
commit1918cd26a16bf6051b3fcc791e1f260bad846c72 (patch)
treef213b5a2b87f9424a1a6391a768c3accb66ff810 /tests/options
parente7b6a33f0e3dd37d276a0c18dcbdc62e2c80ed98 (diff)
downloadmarkdown-1918cd26a16bf6051b3fcc791e1f260bad846c72.tar.gz
markdown-1918cd26a16bf6051b3fcc791e1f260bad846c72.tar.bz2
markdown-1918cd26a16bf6051b3fcc791e1f260bad846c72.zip
Refactored test framework to use YAML config files rather than INI. Fixes #333.
Diffstat (limited to 'tests/options')
-rw-r--r--tests/options/html4.html2
-rw-r--r--tests/options/html4.txt2
-rw-r--r--tests/options/no-attributes.html2
-rw-r--r--tests/options/no-attributes.txt3
-rw-r--r--tests/options/test.cfg10
5 files changed, 17 insertions, 2 deletions
diff --git a/tests/options/html4.html b/tests/options/html4.html
new file mode 100644
index 0000000..7c88ad7
--- /dev/null
+++ b/tests/options/html4.html
@@ -0,0 +1,2 @@
+<p>A test of the most<br>
+basic of html/xhtml differences.</p> \ No newline at end of file
diff --git a/tests/options/html4.txt b/tests/options/html4.txt
new file mode 100644
index 0000000..fddaf8e
--- /dev/null
+++ b/tests/options/html4.txt
@@ -0,0 +1,2 @@
+A test of the most
+basic of html/xhtml differences. \ No newline at end of file
diff --git a/tests/options/no-attributes.html b/tests/options/no-attributes.html
new file mode 100644
index 0000000..a72e888
--- /dev/null
+++ b/tests/options/no-attributes.html
@@ -0,0 +1,2 @@
+<p>Regression <em>test</em> for issue 87</p>
+<p>It's run with enable_attributes=False so this {@id=explanation} should not become an attribute</p> \ No newline at end of file
diff --git a/tests/options/no-attributes.txt b/tests/options/no-attributes.txt
new file mode 100644
index 0000000..b2cb653
--- /dev/null
+++ b/tests/options/no-attributes.txt
@@ -0,0 +1,3 @@
+Regression *test* for issue 87
+
+It's run with enable_attributes=False so this {@id=explanation} should not become an attribute
diff --git a/tests/options/test.cfg b/tests/options/test.cfg
index d0d3368..eb8b853 100644
--- a/tests/options/test.cfg
+++ b/tests/options/test.cfg
@@ -1,2 +1,8 @@
-[lazy_ol_off]
-lazy_ol = False
+lazy_ol_off:
+ lazy_ol: False
+
+html4:
+ output_format: html4
+
+no-attributes:
+ enable_attributes: False