summaryrefslogtreecommitdiff
path: root/docutils/test/functional/input/data
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2021-06-30 07:48:12 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2021-06-30 07:48:12 +0000
commit44722a1b837397ac3ec7d70b79fab72ad5c03638 (patch)
tree1e0e1f86707cccbd092dafd9f337c957ee1094db /docutils/test/functional/input/data
parent02e2a511ed0e7ad6dd4a6956c8a96af5904f4304 (diff)
downloaddocutils-44722a1b837397ac3ec7d70b79fab72ad5c03638.tar.gz
Reorganise functional tests.
Move additional tests for special features or problems specific to the output format from the "standalone_..." generic test case to additional tests. Use unit test instead of functional test for the fix in r6155 (hyperlink references in substitutions). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8784 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional/input/data')
-rw-r--r--docutils/test/functional/input/data/hyperlinking.txt2
-rw-r--r--docutils/test/functional/input/data/latex_encoding.txt10
-rw-r--r--docutils/test/functional/input/data/nonalphanumeric.txt2
-rw-r--r--docutils/test/functional/input/data/option_lists.txt6
-rw-r--r--docutils/test/functional/input/data/section_titles.txt50
-rw-r--r--docutils/test/functional/input/data/tables_latex.txt2
-rw-r--r--docutils/test/functional/input/data/unicode.txt2
-rw-r--r--docutils/test/functional/input/data/urls.txt14
8 files changed, 52 insertions, 36 deletions
diff --git a/docutils/test/functional/input/data/hyperlinking.txt b/docutils/test/functional/input/data/hyperlinking.txt
index f960828e3..b88e34cf1 100644
--- a/docutils/test/functional/input/data/hyperlinking.txt
+++ b/docutils/test/functional/input/data/hyperlinking.txt
@@ -1,5 +1,5 @@
Hyperlinks and -targets
------------------------
+=======================
In LaTeX, we must set an explicit anchor (``\phantomsection``) for a
_`hypertarget in plain text` or in a figure but not in a longtable or
diff --git a/docutils/test/functional/input/data/latex_encoding.txt b/docutils/test/functional/input/data/latex_encoding.txt
index 96ee9f10d..2544757fa 100644
--- a/docutils/test/functional/input/data/latex_encoding.txt
+++ b/docutils/test/functional/input/data/latex_encoding.txt
@@ -1,5 +1,5 @@
Encoding special chars
-----------------------
+======================
The LaTeX Info pages lists under "2.18 Special Characters"
@@ -34,8 +34,6 @@ simple
[bracketed]
description term
-The OT1 font-encoding has different characters for the less-than,
-greater-than and bar, < | >, except for typewriter font `cmtt`::
-
- < | >
-
+The OT1 font-encoding differs from ASCII for the less-than, greater-than
+and bar characters (< | >) except for typewriter font `cmtt`
+(``< | >``).
diff --git a/docutils/test/functional/input/data/nonalphanumeric.txt b/docutils/test/functional/input/data/nonalphanumeric.txt
index 4c4ee7343..1acf48df0 100644
--- a/docutils/test/functional/input/data/nonalphanumeric.txt
+++ b/docutils/test/functional/input/data/nonalphanumeric.txt
@@ -1,5 +1,5 @@
Monospaced non-alphanumeric characters
---------------------------------------
+======================================
These are all ASCII characters except a-zA-Z0-9 and space:
diff --git a/docutils/test/functional/input/data/option_lists.txt b/docutils/test/functional/input/data/option_lists.txt
index 285143244..41369373a 100644
--- a/docutils/test/functional/input/data/option_lists.txt
+++ b/docutils/test/functional/input/data/option_lists.txt
@@ -1,11 +1,11 @@
.. This file is used by the standalone_rst_latex test.
Option lists
-------------
+============
-The LaTeX-2e description environment is used for definition lists.
+The LaTeX-2e description environment is used for definition lists.
The definition is continued on the same line as the term, this should
-not happen if a option-list is at the top of the definition.
+not happen if an option-list is at the top of the definition.
If the option list is not at the first element in the definition, it
is contained in a quote
diff --git a/docutils/test/functional/input/data/section_titles.txt b/docutils/test/functional/input/data/section_titles.txt
index 7dfe97966..dc8b4bcd2 100644
--- a/docutils/test/functional/input/data/section_titles.txt
+++ b/docutils/test/functional/input/data/section_titles.txt
@@ -1,28 +1,46 @@
-Section titles with `inline markup`_
-------------------------------------
+Section heading levels
+======================
-*emphasized*, H\ :sub:`2`\ O and :math:`x^2`
-````````````````````````````````````````````
-Substitutions |fail|
-````````````````````
-.. |fail| replace:: work
+Level 1
+=======
+Nested sections
-Deeply nested sections
-----------------------
-In LaTeX and HTML,
+Level 2
+-------
+reach at some level
Level 3
```````
-nested sections
+(depending on the document class and output format)
level 4
^^^^^^^
-reach at some level
+a level
level 5
-:::::::
-(depending on the document class)
++++++++
+that is not supported by the output format.
level 6
-+++++++
-an unsupported level.
+:::::::
+Unsupported in LaTeX and HTML5
+(HTML5 reserves the 1st level for the document title).
+
+level 7
+#######
+Unsupported in HTML4.
+
+level 8
+<<<<<<<
+Unsupported in ODT.
+
+.. _references:
+
+Section titles with inline markup
+==================================
+
+*emphasized*, H\ :sub:`2`\ O, :math:`x^2`, and references_
+----------------------------------------------------------
+Substitutions |fail|
+--------------------
+.. |fail| replace:: work
diff --git a/docutils/test/functional/input/data/tables_latex.txt b/docutils/test/functional/input/data/tables_latex.txt
index 2fbfdd1d6..beecf6b21 100644
--- a/docutils/test/functional/input/data/tables_latex.txt
+++ b/docutils/test/functional/input/data/tables_latex.txt
@@ -1,5 +1,5 @@
More Tables
------------
+===========
A table with multi-paragraph multicolumn cells:
diff --git a/docutils/test/functional/input/data/unicode.txt b/docutils/test/functional/input/data/unicode.txt
index 4ac693ffb..90dfbce7a 100644
--- a/docutils/test/functional/input/data/unicode.txt
+++ b/docutils/test/functional/input/data/unicode.txt
@@ -1,5 +1,5 @@
Non-ASCII characters
---------------------
+====================
Punctuation and footnote symbols
diff --git a/docutils/test/functional/input/data/urls.txt b/docutils/test/functional/input/data/urls.txt
index 3da9b30a8..a3c8a9129 100644
--- a/docutils/test/functional/input/data/urls.txt
+++ b/docutils/test/functional/input/data/urls.txt
@@ -1,5 +1,5 @@
External references
--------------------
+===================
Long URLs should be wrapped in the PDF. This can be achieved with the
``\url`` command which is used by the LaTeX writer whenever the content
@@ -16,7 +16,7 @@ unbalanced braces.
The characters ^, {, }, and ``\`` are invalid in a "http:" or "ftp:" URL
and not recognized as part of it:
-
+
| http://www.example.org/strange^^name
| http://www.example.org\\using\\DOS\\paths\\
| http://www.example.org/XML/strange{n}ame
@@ -32,15 +32,15 @@ Handling by the LaTeX writer:
| `URL with % <http://www.w3.org/XML/Schema%dev>`__
http://example.org/Schema%dev
| `file with DOS path`__ `A:DOS\\path\\`__
-
+
.. note:: These URLs are typeset inside a LaTeX command without error.
-
+
| http://www.w3.org/XML/Schema#dev
| http://example.org/Schema%dev
| `A:DOS\\path\\`__
-__
-__
+__
+__
__ A:DOS\\path\\
@@ -56,7 +56,7 @@ __ A:DOS\\path\\
`<../strange{name>`__
while balanced braces are suported:
-
+
| `<../strange{n}ame>`__
| `<../st{r}ange{n}ame>`__
| `<../{st{r}ange{n}ame}>`__