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

Unified Diff: third_party/WebKit/LayoutTests/svg/custom/favicon-link.svg

Issue 2628873003: Look for favicon URLs (and similar <link>s) in SVG documents (Closed)
Patch Set: Find all <link>s in document (like Gecko.) Created 3 years, 11 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 | third_party/WebKit/LayoutTests/svg/custom/favicon-link-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/custom/favicon-link.svg
diff --git a/third_party/WebKit/LayoutTests/svg/custom/favicon-link.svg b/third_party/WebKit/LayoutTests/svg/custom/favicon-link.svg
new file mode 100644
index 0000000000000000000000000000000000000000..bd7172b75935b7f13dc03e7198f78ff6300fe7ff
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/custom/favicon-link.svg
@@ -0,0 +1,30 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <defs>
+ <html:link rel="shortcut icon" href="icon1.png"/>
+ <html:link rel="shortcut icon" href="icon2.png"/>
+ <html:link rel="shortcut icon" href="icon3.png"/>
+ </defs>
+ <text y="20"></text>
+ <defs>
+ <html:link rel="shortcut icon" href="icon4.png"/>
+ <html:link rel="shortcut icon" href="icon5.png"/>
+ </defs>
+ <html:link rel="shortcut icon" href="icon6.png"/>
+ <script>
+ <![CDATA[
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ let icons = internals.shortcutIconURLs(document);
+ let passed = icons.length === 6 &&
+ icons[0].endsWith('icon6.png') &&
+ icons[1].endsWith('icon5.png') &&
+ icons[2].endsWith('icon4.png') &&
+ icons[3].endsWith('icon3.png') &&
+ icons[4].endsWith('icon2.png') &&
+ icons[5].endsWith('icon1.png');
+ let resultNode = document.querySelector('text');
+ resultNode.textContent = passed ? "PASS" : "FAIL";
+ ]]>
+ </script>
+</svg>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/custom/favicon-link-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698