summaryrefslogtreecommitdiff
path: root/docutils/test
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-09-11 21:53:49 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-09-11 21:53:49 +0000
commit267441bc32fecc24704a184b6a604e2049d1a686 (patch)
tree76161260436e601c7c88dcfa744aadbfb5d27c60 /docutils/test
parent52301a85267f403f35ff71b82d3475f5e1a21d97 (diff)
downloaddocutils-267441bc32fecc24704a184b6a604e2049d1a686.tar.gz
replaced node.parent.replace(node, new) constructs with node.substitute(new)
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3870 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test')
-rw-r--r--docutils/test/functional/expected/standalone_rst_html4css1.html4
-rw-r--r--docutils/test/functional/expected/standalone_rst_pseudoxml.txt4
-rwxr-xr-xdocutils/test/test_transforms/test_footnotes.py4
-rwxr-xr-xdocutils/test/test_transforms/test_hyperlinks.py4
4 files changed, 8 insertions, 8 deletions
diff --git a/docutils/test/functional/expected/standalone_rst_html4css1.html b/docutils/test/functional/expected/standalone_rst_html4css1.html
index 2093ab1bb..da34c5fee 100644
--- a/docutils/test/functional/expected/standalone_rst_html4css1.html
+++ b/docutils/test/functional/expected/standalone_rst_html4css1.html
@@ -479,7 +479,7 @@ Here's a reference to the next footnote: <a class="footnote-reference" href="#id
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a name="id13">[4]</a></td><td>Here's an unreferenced footnote, with a reference to a
-nonexistent footnote: <a href="#id25" name="id26"><span class="problematic" id="id26">[5]_</span></a>.</td></tr>
+nonexistent footnote: <a href="#id25" name="id26"><span class="problematic" id="id26"><span id="id14"></span>[5]_</span></a>.</td></tr>
</tbody>
</table>
</div>
@@ -492,7 +492,7 @@ nonexistent footnote: <a href="#id25" name="id26"><span class="problematic" id="
rendered separately and differently from footnotes.</td></tr>
</tbody>
</table>
-<p>Here's a reference to the above, <a class="citation-reference" href="#cit2002" id="id15" name="id15">[CIT2002]</a>, and a <a href="#id27" name="id28"><span class="problematic" id="id28">[nonexistent]_</span></a>
+<p>Here's a reference to the above, <a class="citation-reference" href="#cit2002" id="id15" name="id15">[CIT2002]</a>, and a <a href="#id27" name="id28"><span class="problematic" id="id28"><span id="id16"></span>[nonexistent]_</span></a>
citation.</p>
</div>
<div class="section">
diff --git a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt b/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
index c2af4aaa9..1e16812f1 100644
--- a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
+++ b/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
@@ -948,7 +948,7 @@
<paragraph>
Here's an unreferenced footnote, with a reference to a
nonexistent footnote:
- <problematic ids="id26" refid="id25">
+ <problematic ids="id26 id14" refid="id25">
[5]_
.
<section ids="citations" names="citations">
@@ -967,7 +967,7 @@
<citation_reference ids="id15" refid="cit2002">
CIT2002
, and a
- <problematic ids="id28" refid="id27">
+ <problematic ids="id28 id16" refid="id27">
[nonexistent]_
citation.
diff --git a/docutils/test/test_transforms/test_footnotes.py b/docutils/test/test_transforms/test_footnotes.py
index f0a1a2ed0..86cbd2110 100755
--- a/docutils/test/test_transforms/test_footnotes.py
+++ b/docutils/test/test_transforms/test_footnotes.py
@@ -182,7 +182,7 @@ Mixed anonymous and labelled auto-numbered footnotes:
<footnote_reference auto="1" ids="id3" refid="id8">
3
should be 3, \n\
- <problematic ids="id11" refid="id10">
+ <problematic ids="id11 id4" refid="id10">
[#]_
is one too many,
<footnote_reference auto="1" ids="id5" refid="two">
@@ -327,7 +327,7 @@ and labelled auto-numbered footnotes:
<footnote_reference auto="1" ids="id5" refid="id12">
6
should be 6, \n\
- <problematic ids="id15" refid="id14">
+ <problematic ids="id15 id6" refid="id14">
[#]_
is one too many,
<footnote_reference auto="1" ids="id7" refname="five">
diff --git a/docutils/test/test_transforms/test_hyperlinks.py b/docutils/test/test_transforms/test_hyperlinks.py
index 8d7d6a029..d060043cd 100755
--- a/docutils/test/test_transforms/test_hyperlinks.py
+++ b/docutils/test/test_transforms/test_hyperlinks.py
@@ -145,7 +145,7 @@ circular_ indirect reference
circular_
indirect reference
<target ids="circular" names="circular" refid="circular">
- <problematic ids="id3" refid="id1">
+ <problematic ids="id3 indirect" names="indirect" refid="id1">
.. _indirect: circular_
<system_message backrefs="id2 id3" ids="id1" level="3" line="3" source="test data" type="ERROR">
<paragraph>
@@ -787,7 +787,7 @@ Duplicate manual footnote labels, with reference ([1]_):
<document source="test data">
<paragraph>
Duplicate manual footnote labels, with reference (
- <problematic ids="id5" refid="id4">
+ <problematic ids="id5 id1" refid="id4">
[1]_
):
<footnote dupnames="1" ids="id2">