[librsvg/wip/otte: 22/39] tests: Add a bunch of cycling reference svgs
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/wip/otte: 22/39] tests: Add a bunch of cycling reference svgs
- Date: Tue, 20 Oct 2015 12:35:36 +0000 (UTC)
commit 603c47a6047ef89ca9b36faf607dc38d14a07f57
Author: Benjamin Otte <otte redhat com>
Date: Wed Oct 14 19:52:42 2015 +0200
tests: Add a bunch of cycling reference svgs
... and make sure they don't crash when loading.
tests/fixtures/crash/marker-cycles.svg | 3 +++
tests/fixtures/crash/mask-cycles.svg | 6 ++++++
tests/fixtures/crash/pattern-fallback-cycles.svg | 9 +++++++++
3 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/tests/fixtures/crash/marker-cycles.svg b/tests/fixtures/crash/marker-cycles.svg
new file mode 100644
index 0000000..ee5718f
--- /dev/null
+++ b/tests/fixtures/crash/marker-cycles.svg
@@ -0,0 +1,3 @@
+<svg>
+ <polygon points="0,0" id="a" marker-start="url(#a)" />
+</svg>
diff --git a/tests/fixtures/crash/mask-cycles.svg b/tests/fixtures/crash/mask-cycles.svg
new file mode 100644
index 0000000..5f04b4d
--- /dev/null
+++ b/tests/fixtures/crash/mask-cycles.svg
@@ -0,0 +1,6 @@
+<svg>
+ <defs>
+ <mask mask="url(#b)" id="b" />
+ </defs>
+ <rect mask="url(#b)" width="10" height="10" />
+</svg>
diff --git a/tests/fixtures/crash/pattern-fallback-cycles.svg
b/tests/fixtures/crash/pattern-fallback-cycles.svg
new file mode 100644
index 0000000..dcabcfd
--- /dev/null
+++ b/tests/fixtures/crash/pattern-fallback-cycles.svg
@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <pattern id="p" width="10" height="10" xlink:href="#p"/>
+ <linearGradient id="l" xlink:href="#r"/>
+ <radialGradient id="r" xlink:href="#l"/>
+ </defs>
+ <rect fill="url(#p) pink" width="10" height="10" />
+ <rect fill="url(#l) pink" width="10" height="10" />
+</svg>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]