diff options
author | Nozomu Kaneko <nozom.kaneko@gmail.com> | 2013-01-06 18:37:21 +0900 |
---|---|---|
committer | Nozomu Kaneko <nozom.kaneko@gmail.com> | 2013-01-06 18:37:21 +0900 |
commit | 2ce5da1c1866e2bc52d97fa2118d82590e302ae3 (patch) | |
tree | 9e33f0b054cbc7b7545fc24d040f015eef0b89ca /tests/test_build_html.py | |
parent | a4efeb35deb15f9d27ad0a4f2d76195b8c993d84 (diff) | |
download | sphinx-2ce5da1c1866e2bc52d97fa2118d82590e302ae3.tar.gz |
versionlabels are handled entirely in the versionmodified directive, instead of the writers.
Now it returns a versionmodified node with the versionlabel already inserted.
Diffstat (limited to 'tests/test_build_html.py')
-rw-r--r-- | tests/test_build_html.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_build_html.py b/tests/test_build_html.py index 05def19d..616b67f9 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -144,12 +144,13 @@ HTML_XPATH = { # abbreviations (".//abbr[@title='abbreviation']", '^abbr$'), # version stuff - (".//span[@class='versionmodified']", 'New in version 0.6'), - (".//p[@class='versionadded']/span[@class='versionmodified']", + (".//div[@class='versionadded']/p/span", 'New in version 0.6: '), + (".//div[@class='versionadded']/p/span", tail_check('First paragraph of versionadded')), - (".//p[@class='versionchanged']/span[@class='versionmodified']", + (".//div[@class='versionchanged']/p/span", tail_check('First paragraph of versionchanged')), - (".//p", 'Second paragraph of versionchanged'), + (".//div[@class='versionchanged']/p", + 'Second paragraph of versionchanged'), # footnote reference (".//a[@class='footnote-reference']", r'\[1\]'), # created by reference lookup |