OLD | NEW |
---|---|
(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> | |
OLD | NEW |