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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/file-extension-svg-and-inner-svg-document.svg

Issue 1774913003: (Re-commit) Fix SVGDocument return title that is not a child of the root element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: third_party/WebKit/LayoutTests/svg/dom/file-extension-svg-and-inner-svg-document.svg
diff --git a/third_party/WebKit/LayoutTests/svg/dom/file-extension-svg-and-inner-svg-document.svg b/third_party/WebKit/LayoutTests/svg/dom/file-extension-svg-and-inner-svg-document.svg
new file mode 100644
index 0000000000000000000000000000000000000000..e12eda75ebf6c7f68b6faf06812b6dfba3e87a2c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/dom/file-extension-svg-and-inner-svg-document.svg
@@ -0,0 +1,30 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xlink="http://www.w3.org/1999/xlink">
fs 2016/03/08 17:05:26 xlink="..." is not useful for anything (to declare
hyunjunekim2 2016/03/09 15:54:46 Done. Remove this test.
+ <head>
+ <script src="../../resources/js-test.js"></script>
fs 2016/03/08 17:05:26 Use testharness.js instead (there no need to invol
hyunjunekim2 2016/03/09 15:54:46 Done.
+ </head>
+ <body id="bodyElement">
+ <svg xmlns="http://www.w3.org/2000/svg" id="svgElement" xlink="http://www.w3.org/1999/xlink">
+ <g id="gElement"></g>
+ </svg>
+ </body>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
fs 2016/03/08 17:05:26 You don't need waitUntilDone in this case, because
hyunjunekim2 2016/03/09 15:54:46 Done. Remove this test.
+ }
+
+ var g = document.getElementById("gElement");
+ var svgElement = document.getElementById("svgElement");
+ title1 = document.createElementNS("http://www.w3.org/1999/xhtml", "title");
+ title1.textContent = "title1";
+ g.appendChild(title1);
+ shouldBeEqualToString('document.title','');
+ title2 = document.createElementNS("http://www.w3.org/1999/xhtml", "title");
+ title2.textContext = "title2";
+ svgElement.appendChild(title2);
+ shouldBeEqualToString('document.title','');
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+ </script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698