aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/data/refs/imagemap__--maptype__HTML__oob__svg.out1
-rw-r--r--tests/data/svg/oob.svg5
-rw-r--r--tests/test_imagemap_comparison.py1
3 files changed, 7 insertions, 0 deletions
diff --git a/tests/data/refs/imagemap__--maptype__HTML__oob__svg.out b/tests/data/refs/imagemap__--maptype__HTML__oob__svg.out
new file mode 100644
index 0000000..e62f2b7
--- /dev/null
+++ b/tests/data/refs/imagemap__--maptype__HTML__oob__svg.out
@@ -0,0 +1 @@
+<area shape=poly coords=50,25,0,58,0,75,75,75 href=http://example.com>
diff --git a/tests/data/svg/oob.svg b/tests/data/svg/oob.svg
new file mode 100644
index 0000000..d46ee63
--- /dev/null
+++ b/tests/data/svg/oob.svg
@@ -0,0 +1,5 @@
+<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <a xlink:href="http://example.com">
+ <polyline points="50,25 75,75 -25,75"/>
+ </a>
+</svg>
diff --git a/tests/test_imagemap_comparison.py b/tests/test_imagemap_comparison.py
index 445f981..994bc95 100644
--- a/tests/test_imagemap_comparison.py
+++ b/tests/test_imagemap_comparison.py
@@ -8,6 +8,7 @@ class ImageMapComparisonTest(ComparisonMixin, TestCase):
'svg/fillstroke.svg',
'svg/image.svg',
'svg/intersect.svg',
+ 'svg/oob.svg',
'svg/overlap.svg',
'svg/rounding.svg',
'svg/text.svg',