From 3bd9e4617e868ffcc55dc6b3fb651d29e65b56e1 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 30 May 2010 12:47:17 +0200 Subject: [PATCH] Add a test for absolute image filenames. --- tests/root/subdir/includes.txt | 3 +++ tests/test_build_html.py | 1 + 2 files changed, 4 insertions(+) diff --git a/tests/root/subdir/includes.txt b/tests/root/subdir/includes.txt index 3e1ae0d13..53a6bd29a 100644 --- a/tests/root/subdir/includes.txt +++ b/tests/root/subdir/includes.txt @@ -10,3 +10,6 @@ Including in subdir :lines: 2 Absolute :download:`/img.png` download. + +.. absolute image filename +.. image:: /img.png diff --git a/tests/test_build_html.py b/tests/test_build_html.py index 4082cabfe..93a015daf 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -61,6 +61,7 @@ HTML_XPATH = { }, 'subdir/includes.html': { ".//a[@href='../_downloads/img.png']": '', + ".//img[@src='../_images/img.png']": '', }, 'includes.html': { ".//pre": u'Max Strauß',