Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Unified Diff: LayoutTests/svg/filters/feimage-invalid-image.svg

Issue 1334173004: Switch SVGFEImage from SkBitmapSource to SkImageSource (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: spec compliant + test Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/svg/filters/feimage-invalid-image-expected.svg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/filters/feimage-invalid-image.svg
diff --git a/LayoutTests/svg/filters/feimage-invalid-image.svg b/LayoutTests/svg/filters/feimage-invalid-image.svg
new file mode 100644
index 0000000000000000000000000000000000000000..58ac5d15f1b640d436f7382c2b1c2759c896c748
--- /dev/null
+++ b/LayoutTests/svg/filters/feimage-invalid-image.svg
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
Stephen White 2015/09/17 13:58:14 Nit: suggest we specify a width/height that explic
f(malita) 2015/09/17 15:02:11 Done.
+ <defs>
+ <filter id="missing_href">
+ <feImage out="out1"/>
+ <feColorMatrix type="matrix" in="out1" values="1 0 0 0 0 0 -1 0 0 1 0 0 1 0 0 0 0 0 -1 1"/>
+ </filter>
+
+ <filter id="missing_image">
+ <feImage out="out1" xlink:href="missing.png"/>
+ <feColorMatrix type="matrix" in="out1" values="1 0 0 0 0 0 -1 0 0 1 0 0 1 0 0 0 0 0 -1 1"/>
+ </filter>
+
+ <filter id="broken_decode">
+ <feImage out="out1" xlink:href="data:image/gif;base64,FOO"/>
+ <feColorMatrix type="matrix" in="out1" values="1 0 0 0 0 0 -1 0 0 1 0 0 1 0 0 0 0 0 -1 1"/>
+ </filter>
+
+ <filter id="unsupported_format">
+ <feImage out="out1" xlink:href="data:image/foo;base64,"/>
+ <feColorMatrix type="matrix" in="out1" values="1 0 0 0 0 0 -1 0 0 1 0 0 1 0 0 0 0 0 -1 1"/>
+ </filter>
+ </defs>
+
+ <rect x="100" y="50" width="200" height="100" fill="red" filter="url(#missing_href)"/>
+ <rect x="100" y="200" width="200" height="100" fill="red" filter="url(#missing_image)"/>
+ <rect x="100" y="350" width="200" height="100" fill="red" filter="url(#broken_decode)"/>
+ <rect x="100" y="500" width="200" height="100" fill="red" filter="url(#unsupported_format)"/>
+
+</svg>
« no previous file with comments | « no previous file | LayoutTests/svg/filters/feimage-invalid-image-expected.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698