Reviewed by justing.
Test cases added:
* layout-tests/fast/dom/HTMLDocument/title/get.html: Added.
* layout-tests/fast/dom/HTMLDocument/title/set.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9532
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
--- /dev/null
+<html>
+<head>
+<title>test</title>
+<script>
+function print(message) {
+ var paragraph = document.createElement("p");
+ paragraph.appendChild(document.createTextNode(message));
+ document.getElementById("console").appendChild(paragraph);
+}
+
+function test() {
+ if (document.title == "test") {
+ print("passed");
+ } else {
+ print("failed");
+ }
+}
+</script>
+</head>
+<body onload="test()">
+<p>Tests: getting HTMLDocument::title</p>
+<p>Condition(s): </p>
+<p>Success message: passed</p>
+<p>Failure message: failed</p>
+<hr>
+<div id='console'/>
+</body>
+</html>
--- /dev/null
+<html>
+<head>
+<script>
+function print(message) {
+ var paragraph = document.createElement("p");
+ paragraph.appendChild(document.createTextNode(message));
+ document.getElementById("console").appendChild(paragraph);
+}
+
+function test() {
+ document.title = "test";
+ if (document.title == "test") {
+ print("passed");
+ } else {
+ print("failed");
+ }
+}
+</script>
+</head>
+<body onload="test()">
+<p>Tests: setting HTMLDocument::title</p>
+<p>Condition(s): </p>
+<p>Success message: passed</p>
+<p>Failure message: failed</p>
+<hr>
+<div id='console'/>
+</body>
+</html>
+2005-06-29 Geoffrey Garen <ggaren@apple.com>
+
+ DOM compatibility tests for HTMLDocument::title
+
+ Reviewed by justing.
+
+ Test cases added:
+ * layout-tests/fast/dom/HTMLDocument/title/get.html: Added.
+ * layout-tests/fast/dom/HTMLDocument/title/set.html: Added.
+
2005-06-28 Maciej Stachowiak <mjs@apple.com>
Reviewed by Darin.