summaryrefslogtreecommitdiff
path: root/test/test_transforms
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-04-02 03:11:58 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-04-02 03:11:58 +0000
commit9eb9c58af67ea113f9f6a64fb854a786ffede8d7 (patch)
tree5338a7a8d649b5a3c3565d1eb11818c0b723c4fe /test/test_transforms
parentc215acd625f548e03f484cbb13be023dcfb85591 (diff)
downloaddocutils-9eb9c58af67ea113f9f6a64fb854a786ffede8d7.tar.gz
updated
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1907 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/test_transforms')
-rwxr-xr-xtest/test_transforms/test_hyperlinks.py33
1 files changed, 31 insertions, 2 deletions
diff --git a/test/test_transforms/test_hyperlinks.py b/test/test_transforms/test_hyperlinks.py
index bee1aac87..82c2802cb 100755
--- a/test/test_transforms/test_hyperlinks.py
+++ b/test/test_transforms/test_hyperlinks.py
@@ -301,8 +301,8 @@ An `anonymous embedded uri <http://direct>`__.
])
totest['hyperlinks'] = ((ChainedTargets, AnonymousHyperlinks,
- IndirectHyperlinks, ExternalTargets,
- InternalTargets,), [
+ IndirectHyperlinks, ExternalTargets,
+ InternalTargets,), [
["""\
.. _internal hyperlink:
@@ -538,6 +538,35 @@ __ http://example.org
<reference name="internal_" refid="internal">
<image uri="picture.png">
"""],
+["""\
+.. contents:: Table of Contents
+.. _indirect reference to the table of contents: `table of contents`_
+
+Section
+=======
+
+Testing an `indirect reference to the table of contents`_.
+""",
+"""\
+<document source="test data">
+ <topic class="contents" id="table-of-contents" name="table of contents">
+ <title>
+ Table of Contents
+ <bullet_list>
+ <list_item>
+ <paragraph>
+ <reference id="id1" refid="section">
+ Section
+ <target id="indirect-reference-to-the-table-of-contents" name="indirect reference to the table of contents" refid="table-of-contents">
+ <section id="section" name="section">
+ <title refid="id1">
+ Section
+ <paragraph>
+ Testing an
+ <reference name="indirect reference to the table of contents" refid="table-of-contents">
+ indirect reference to the table of contents
+ .
+"""],
])