aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/man/RS/literal.out_html
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-01-05 20:04:50 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-01-05 20:04:50 +0000
commitc33a3366a3d5db0a3182110ecfe15ded97489b77 (patch)
tree1b8d3c2c6d13948db53cc88d0594e9caca28d017 /regress/man/RS/literal.out_html
parent0ff0ed9ccba23c2bb72acd03d35240498c7dff6e (diff)
downloadmandoc-c33a3366a3d5db0a3182110ecfe15ded97489b77.tar.gz
mandoc-c33a3366a3d5db0a3182110ecfe15ded97489b77.tar.zst
mandoc-c33a3366a3d5db0a3182110ecfe15ded97489b77.zip
Slowly start doing more HTML output tests, in this case for the
interaction of .nf and .RS, related to man_macro.c rev. 1.106. HTML regression testing is tricky because it is extremely prone to over-testing, i.e. unintentional testing for volatile formatting details which are irrelevant for deciding whether the HTML output is good or bad. Minor changes to the formatter - which is still heavily under development - might result in the necessity to repeatedly adjust many test cases. Then again, HTML syntax rules are so complicated that without regression testing, the risk is simply too high that later changes will re-introduce issues that were already fixed earlier. Let's just try to design the tests very carefully in such a way that the *.out_html files contain nothing that is likely to change, and defer testing in cases where the HTML output is not yet clean enough to allow designing tests in such a way.
Diffstat (limited to 'regress/man/RS/literal.out_html')
-rw-r--r--regress/man/RS/literal.out_html20
1 files changed, 20 insertions, 0 deletions
diff --git a/regress/man/RS/literal.out_html b/regress/man/RS/literal.out_html
new file mode 100644
index 00000000..9475f407
--- /dev/null
+++ b/regress/man/RS/literal.out_html
@@ -0,0 +1,20 @@
+BEGINTEST
+<br/>
+initial regular text
+<pre>
+literal text
+before display
+</pre>
+<div class="Bd-indent">
+<pre>
+This is a short line.
+This is a very long line that would wrap if it weren't in literal context.
+</pre>
+</div>
+<pre>
+literal text
+after display
+</pre>
+final regular text
+<br/>
+ENDTEST