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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <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.
2 <head>
3 <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.
4 </head>
5 <body id="bodyElement">
6 <svg xmlns="http://www.w3.org/2000/svg" id="svgElement" xlink="http://www.w3 .org/1999/xlink">
7 <g id="gElement"></g>
8 </svg>
9 </body>
10 <script>
11 if (window.testRunner) {
12 testRunner.dumpAsText();
13 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.
14 }
15
16 var g = document.getElementById("gElement");
17 var svgElement = document.getElementById("svgElement");
18 title1 = document.createElementNS("http://www.w3.org/1999/xhtml", "title");
19 title1.textContent = "title1";
20 g.appendChild(title1);
21 shouldBeEqualToString('document.title','');
22 title2 = document.createElementNS("http://www.w3.org/1999/xhtml", "title");
23 title2.textContext = "title2";
24 svgElement.appendChild(title2);
25 shouldBeEqualToString('document.title','');
26
27 if (window.testRunner)
28 testRunner.notifyDone();
29 </script>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698