DOM compatibility tests for HTMLDocument::title
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Jun 2005 23:01:16 +0000 (23:01 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Jun 2005 23:01:16 +0000 (23:01 +0000)
        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

LayoutTests/fast/dom/HTMLDocument/title/get.html [new file with mode: 0644]
LayoutTests/fast/dom/HTMLDocument/title/set.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23

diff --git a/LayoutTests/fast/dom/HTMLDocument/title/get.html b/LayoutTests/fast/dom/HTMLDocument/title/get.html
new file mode 100644 (file)
index 0000000..7fbe154
--- /dev/null
@@ -0,0 +1,28 @@
+<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>
diff --git a/LayoutTests/fast/dom/HTMLDocument/title/set.html b/LayoutTests/fast/dom/HTMLDocument/title/set.html
new file mode 100644 (file)
index 0000000..649e65b
--- /dev/null
@@ -0,0 +1,28 @@
+<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>
index 8f5b97cea10a3ed2481302f1d793423de1158361..71e6959be0e4ad4c8939f058f4a17c821461404c 100644 (file)
@@ -1,3 +1,13 @@
+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.