Chromium Code Reviews| Index: LayoutTests/fast/dom/document-set-title-no-child-on-empty.html |
| diff --git a/LayoutTests/fast/dom/document-set-title-no-child-on-empty.html b/LayoutTests/fast/dom/document-set-title-no-child-on-empty.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0964f51b0733ffc787635bd6bd726d5fbcdda30b |
| --- /dev/null |
| +++ b/LayoutTests/fast/dom/document-set-title-no-child-on-empty.html |
| @@ -0,0 +1,16 @@ |
| +<!DOCTYPE html> |
| +<title>document title and the empty string</title> |
| +<script src="../../resources/js-test.js"></script> |
| +<body> |
| + <script> |
|
jochen (gone - plz use gerrit)
2014/01/20 19:22:01
nit 4 spaces indent
|
| + description("On setting document.title to the empty string, no text node must be created"); |
| + |
| + var head = document.documentElement.firstChild; |
| + head.removeChild(head.firstChild); |
| + shouldBeEqualToString("document.title", ""); |
| + document.title = ""; |
| + shouldBeEqualToString("document.title", ""); |
| + shouldBeTrue("head.lastChild instanceof HTMLTitleElement"); |
| + shouldBe("head.lastChild.firstChild", 'null'); |
| + </script> |
| +</body> |