diff options
| author | Georg Brandl <georg@python.org> | 2008-12-08 08:44:18 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2008-12-08 08:44:18 +0100 |
| commit | d499a5288b63a11a099e93537733c78a90a352ac (patch) | |
| tree | ef2f636e93092503d5b7e7ca03ee0e0770177c97 /tests | |
| parent | fb99ef6bf5292aa3f1b2e3af646a704173bc2435 (diff) | |
| download | sphinx-d499a5288b63a11a099e93537733c78a90a352ac.tar.gz | |
Fix #60: "smart" image inclusion in subdirs.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/root/contents.txt | 1 | ||||
| -rw-r--r-- | tests/root/subdir/images.txt | 4 | ||||
| -rw-r--r-- | tests/test_build.py | 3 |
3 files changed, 8 insertions, 0 deletions
diff --git a/tests/root/contents.txt b/tests/root/contents.txt index e8e6a564..61646f62 100644 --- a/tests/root/contents.txt +++ b/tests/root/contents.txt @@ -11,6 +11,7 @@ Contents: :maxdepth: 2 images + subdir/images includes markup desc diff --git a/tests/root/subdir/images.txt b/tests/root/subdir/images.txt new file mode 100644 index 00000000..33adf5b5 --- /dev/null +++ b/tests/root/subdir/images.txt @@ -0,0 +1,4 @@ +Image including source in subdir +================================ + +.. image:: img.* diff --git a/tests/test_build.py b/tests/test_build.py index 938d3c98..bde843b4 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -51,6 +51,9 @@ HTML_XPATH = { ".//img[@src='_images/img1.png']": '', ".//img[@src='_images/simg.png']": '', }, + 'subdir/images.html': { + ".//img[@src='../_images/img1.png']": '', + }, 'includes.html': { ".//pre/span[@class='s']": u'üöä', ".//pre": u'Max Strauß', |
