Index: LayoutTests/fast/dom/HTMLAnchorElement/set-text.html |
diff --git a/LayoutTests/fast/dom/HTMLAnchorElement/set-text.html b/LayoutTests/fast/dom/HTMLAnchorElement/set-text.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b4427b7da9c4de7dfeab884e2e9bf4be481c033e |
--- /dev/null |
+++ b/LayoutTests/fast/dom/HTMLAnchorElement/set-text.html |
@@ -0,0 +1,26 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#dom-a-text"> |
+<script src="../../../resources/js-test.js"></script> |
+</head> |
+<body> |
+<script> |
+description("Tests that HTMLAnchorElement.text can be set."); |
+ |
+var a = document.createElement("a"); |
+shouldBe("a.__proto__", "HTMLAnchorElement.prototype"); |
+ |
+shouldBeEqualToString("a.textContent", ""); |
+shouldBeEqualToString("a.text", ""); |
+ |
+a.textContent = "text1"; |
+shouldBeEqualToString("a.textContent", "text1"); |
+shouldBeEqualToString("a.text", "text1"); |
+ |
+a.text = "text2"; |
+shouldBeEqualToString("a.textContent", "text2"); |
+shouldBeEqualToString("a.text", "text2"); |
+</script> |
+</body> |
+</html> |