summaryrefslogtreecommitdiff
path: root/tests/test_build_html.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-07 19:00:29 +0100
committerGeorg Brandl <georg@python.org>2011-01-07 19:00:29 +0100
commit554c7dd64f6aca38be6e1d26bb2cf4388f46083d (patch)
treea2318b0357a85ab129c5be18df18ce0db2759312 /tests/test_build_html.py
parent3448ad3099e0c30e6901589b6bd8e181a449c6aa (diff)
downloadsphinx-554c7dd64f6aca38be6e1d26bb2cf4388f46083d.tar.gz
#454: Add more index markup capabilities: marking see/seealso entries, and main entries for a given key.
Diffstat (limited to 'tests/test_build_html.py')
-rw-r--r--tests/test_build_html.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test_build_html.py b/tests/test_build_html.py
index f89df08c..7e68f8db 100644
--- a/tests/test_build_html.py
+++ b/tests/test_build_html.py
@@ -49,7 +49,7 @@ http://sphinx.pocoo.org/domains.html
HTML_WARNINGS = ENV_WARNINGS + """\
%(root)s/images.txt:20: WARNING: no matching candidate for image URI u'foo.\\*'
-%(root)s/markup.txt:: WARNING: invalid index entry u''
+%(root)s/markup.txt:: WARNING: invalid single index entry u''
%(root)s/markup.txt:: WARNING: invalid pair index entry u''
%(root)s/markup.txt:: WARNING: invalid pair index entry u'keyword; '
"""
@@ -232,6 +232,14 @@ HTML_XPATH = {
'_static/statictmpl.html': [
(".//project", 'Sphinx <Tests>'),
],
+ 'genindex.html': [
+ # index entries
+ (".//a/strong", "Main"),
+ (".//a/strong", "[1]"),
+ (".//a/strong", "Other"),
+ (".//a", "entry"),
+ (".//dt/a", "double"),
+ ]
}
if pygments: