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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/svg-document-test.html

Issue 1752713002: 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: Add test 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 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description("Tests that get and set document.title.");
fs 2016/03/01 15:49:03 Not sure if this test tests anything that the web-
hyunjunekim2 2016/03/03 14:06:10 Done.removed this test, and added mutation test fo
9
10 var svgDoc = document.implementation.createDocument("http://www.w3.org/2000/svg" , "svg", null);
11 var g = svgDoc.createElementNS("http://www.w3.org/2000/svg", "g");
12 var title = svgDoc.createElementNS("http://www.w3.org/2000/svg", "title");
13 title.textContent = "foo";
14 g.appendChild(title);
15 svgDoc.documentElement.appendChild(g);
16 shouldBeEqualToString("svgDoc.title", "");
17
18 svgDoc.title = "foo";
19 shouldBeEqualToString("svgDoc.title", "foo");
20 shouldBe("svgDoc.documentElement.childNodes.length","2");
21 svgDoc.title = "bar";
22 shouldBeEqualToString("svgDoc.title", "bar");
23 shouldBe("svgDoc.documentElement.childNodes.length","2");
24 </script>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698