Index: LayoutTests/fast/dom/document-set-title-no-reuse.html |
diff --git a/LayoutTests/fast/dom/document-set-title-no-reuse.html b/LayoutTests/fast/dom/document-set-title-no-reuse.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e3975db6ac6ad554bcebaead434421d9408bdd91 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/document-set-title-no-reuse.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/js-test.js"></script> |
+<script type="text/javascript"> |
+description("Test that setting document.title does not reuse <title>'s textnode child"); |
+ |
+onload = function() |
+{ |
+ document.title = "aaa"; |
+ oldnode = document.getElementsByTagName("title")[0].firstChild; |
+ document.title = "bbb"; |
+ shouldBeTrue('oldnode.textContent != "bbb"'); |
+ shouldBeTrue('oldnode != document.getElementsByTagName("title")[0].firstChild'); |
+} |
+</script> |