diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/data/refs/imagemap__--maptype__HTML__target__svg.out | 2 | ||||
| -rw-r--r-- | tests/data/svg/target.svg | 8 | ||||
| -rw-r--r-- | tests/test_imagemap_comparison.py | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/data/refs/imagemap__--maptype__HTML__target__svg.out b/tests/data/refs/imagemap__--maptype__HTML__target__svg.out new file mode 100644 index 0000000..e26d4d1 --- /dev/null +++ b/tests/data/refs/imagemap__--maptype__HTML__target__svg.out @@ -0,0 +1,2 @@ +<area shape=rect coords=25,25,75,75 href=http://example.com/1 target=_top> +<area shape=rect coords=125,25,175,75 href=http://example.com/2 target=_blank> diff --git a/tests/data/svg/target.svg b/tests/data/svg/target.svg new file mode 100644 index 0000000..ed54e7c --- /dev/null +++ b/tests/data/svg/target.svg @@ -0,0 +1,8 @@ +<svg width="200" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <a xlink:href="http://example.com/1" target="_top"> + <rect x="25" y="25" width="50" height="50"/> + </a> + <a xlink:href="http://example.com/2" xlink:show="new"> + <rect x="125" y="25" width="50" height="50"/> + </a> +</svg> diff --git a/tests/test_imagemap_comparison.py b/tests/test_imagemap_comparison.py index b4fae16..4b734b8 100644 --- a/tests/test_imagemap_comparison.py +++ b/tests/test_imagemap_comparison.py @@ -13,6 +13,7 @@ class ImageMapComparisonTest(ComparisonMixin, TestCase): 'svg/oob.svg', 'svg/overlap.svg', 'svg/rounding.svg', + 'svg/target.svg', 'svg/text.svg', 'svg/transform.svg', 'svg/viewbox.svg' |
