diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/data/refs/imagemap__--maptype__HTML__transform__svg.out | 2 | ||||
| -rw-r--r-- | tests/data/svg/transform.svg | 10 | ||||
| -rw-r--r-- | tests/test_imagemap_comparison.py | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/data/refs/imagemap__--maptype__HTML__transform__svg.out b/tests/data/refs/imagemap__--maptype__HTML__transform__svg.out new file mode 100644 index 0000000..1c66e47 --- /dev/null +++ b/tests/data/refs/imagemap__--maptype__HTML__transform__svg.out @@ -0,0 +1,2 @@ +<area shape=poly coords=0,0,50,50,100,50,50,0 href=http://example.com/1> +<area shape=poly coords=0,50,50,100,100,100,50,50 href=http://example.com/2> diff --git a/tests/data/svg/transform.svg b/tests/data/svg/transform.svg new file mode 100644 index 0000000..001e2c3 --- /dev/null +++ b/tests/data/svg/transform.svg @@ -0,0 +1,10 @@ +<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/1"> + <rect x="0" y="0" width="50" height="50" transform="skewX(45)"/> + </a> + <g transform="skewX(45)"> + <a xlink:href="http://example.com/2"> + <rect x="-50" y="50" width="50" height="50"/> + </a> + </g> +</svg> diff --git a/tests/test_imagemap_comparison.py b/tests/test_imagemap_comparison.py index 302162c..087a3d8 100644 --- a/tests/test_imagemap_comparison.py +++ b/tests/test_imagemap_comparison.py @@ -9,6 +9,7 @@ class ImageMapComparisonTest(ComparisonMixin, TestCase): 'svg/rect.svg', 'svg/rounding.svg', 'svg/text.svg', + 'svg/transform.svg', 'svg/viewbox.svg' ) comparisons=[('--maptype=HTML',)] |
