Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/svg/dom/svg-document-test.html |
| diff --git a/third_party/WebKit/LayoutTests/svg/dom/svg-document-test.html b/third_party/WebKit/LayoutTests/svg/dom/svg-document-test.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..585e8be94934110d8523d0d9930b83efa80d4e0b |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/svg/dom/svg-document-test.html |
| @@ -0,0 +1,26 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<script src="../../resources/js-test.js"></script> |
| +</head> |
| +<body> |
| +<script> |
| +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
|
| + |
| +var svgDoc = document.implementation.createDocument("http://www.w3.org/2000/svg", "svg", null); |
| +var g = svgDoc.createElementNS("http://www.w3.org/2000/svg", "g"); |
| +var title = svgDoc.createElementNS("http://www.w3.org/2000/svg", "title"); |
| +title.textContent = "foo"; |
| +g.appendChild(title); |
| +svgDoc.documentElement.appendChild(g); |
| +shouldBeEqualToString("svgDoc.title", ""); |
| + |
| +svgDoc.title = "foo"; |
| +shouldBeEqualToString("svgDoc.title", "foo"); |
| +shouldBe("svgDoc.documentElement.childNodes.length","2"); |
| +svgDoc.title = "bar"; |
| +shouldBeEqualToString("svgDoc.title", "bar"); |
| +shouldBe("svgDoc.documentElement.childNodes.length","2"); |
| +</script> |
| +</body> |
| +</html> |