Index: LayoutTests/fast/dom/document-set-title-no-head.html |
diff --git a/LayoutTests/fast/dom/document-set-title-no-head.html b/LayoutTests/fast/dom/document-set-title-no-head.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..87e9c1ee32f98b51c0263fdb6cd4c565694b05fb |
--- /dev/null |
+++ b/LayoutTests/fast/dom/document-set-title-no-head.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<head></head> |
+<body> |
+<script src="../../resources/js-test.js"></script> |
+<script type="text/javascript"> |
+description("Test that setting document.title when there is no <head> or <title> does nothing"); |
+onload = function() |
+{ |
+ var head = document.head; |
+ while (head.firstChild) |
+ document.documentElement.appendChild(head.firstChild); |
+ document.documentElement.removeChild(head); |
+ document.title = "New title"; |
+ shouldBeEmptyString('document.title'); |
+} |
+</script> |
+</body> |