diff options
author | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2018-11-25 19:58:55 +0100 |
---|---|---|
committer | Lars Schmertmann <lars.schmertmann@governikus.de> | 2018-11-30 09:23:29 +0000 |
commit | 1a66404fd0312a835da03a940894737c1bf77310 (patch) | |
tree | 62a51af2769adf978a15f444740900b5434021f3 /tests/auto/qsvgplugin/imageInclude.svg | |
parent | 601cfab349f57a765f174804e1d17769484c4fcb (diff) | |
download | qtsvg-1a66404fd0312a835da03a940894737c1bf77310.tar.gz |
Consider relative path in image tags
Task-number: QTBUG-16198
Change-Id: I26bf48cbac39af0fae490ed21579e8de326cd1a3
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests/auto/qsvgplugin/imageInclude.svg')
-rw-r--r-- | tests/auto/qsvgplugin/imageInclude.svg | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/qsvgplugin/imageInclude.svg b/tests/auto/qsvgplugin/imageInclude.svg new file mode 100644 index 0000000..c78d3fa --- /dev/null +++ b/tests/auto/qsvgplugin/imageInclude.svg @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> +<svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100"> + <circle cx="50" cy="50" r="25" fill="#00ff00" /> + + <image x="0" y="0" width="100" height="100" xlink:href="imageIncludeA.svg" /> + <image x="0" y="0" width="100" height="100" xlink:href="./imageIncludeA.svg" /> + <image x="0" y="0" width="100" height="100" xlink:href=":/imageIncludeA.svg" /> + + <image x="0" y="0" width="100" height="100" xlink:href="notExisting.svg" /> + <image x="0" y="0" width="100" height="100" xlink:href="./notExisting.svg" /> + <image x="0" y="0" width="100" height="100" xlink:href="../notExisting.svg" /> + <image x="0" y="0" width="100" height="100" xlink:href="/notExisting.svg" /> + <image x="0" y="0" width="100" height="100" xlink:href=":/notExisting.svg" /> + <image x="0" y="0" width="100" height="100" xlink:href="qrc:///notExisting.svg" /> + <image x="0" y="0" width="100" height="100" xlink:href="file:///notExisting.svg" /> + <image x="0" y="0" width="100" height="100" xlink:href="http://qt.io/notExisting.svg" /> +</svg> |