Reviewed by Geoff Garen.
authorbdibello <bdibello@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Jun 2005 17:50:24 +0000 (17:50 +0000)
committerbdibello <bdibello@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Jun 2005 17:50:24 +0000 (17:50 +0000)
        Test cases added: getting and setting div.align

        * layout-tests/fast/dom/HTMLDivElement/align/getset-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDivElement/align/getset.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9548 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/fast/dom/HTMLDivElement/align/getset-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLDivElement/align/getset.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23

diff --git a/LayoutTests/fast/dom/HTMLDivElement/align/getset-expected.txt b/LayoutTests/fast/dom/HTMLDivElement/align/getset-expected.txt
new file mode 100644 (file)
index 0000000..f33121e
--- /dev/null
@@ -0,0 +1,12 @@
+Tests: getting and setting HTMLDivElement::align
+
+Condition(s):
+Testing valid, invalid, and empty values
+
+Success message: passed
+
+Failure message: failed
+
+Get: passed
+
+Set: passed
diff --git a/LayoutTests/fast/dom/HTMLDivElement/align/getset.html b/LayoutTests/fast/dom/HTMLDivElement/align/getset.html
new file mode 100644 (file)
index 0000000..738697d
--- /dev/null
@@ -0,0 +1,83 @@
+<html>
+<head>
+<title>Div test</title>
+<script type="text/javascript">
+function print(message) {
+       var paragraph = document.createElement("p");
+       paragraph.appendChild(document.createTextNode(message));
+       document.getElementById("console").appendChild(paragraph);
+}
+
+function test() {
+       if (window.layoutTestController) {
+               window.layoutTestController.dumpAsText();
+       }
+       //test get align
+       var divL = document.getElementById("divLeft");
+       var divR = document.getElementById("divRight");
+       var divC = document.getElementById("divCenter");
+       var divJ = document.getElementById("divJustify");
+       var divB = document.getElementById("divBad");
+       var divN = document.getElementById("divNone");
+       
+       if ((divL.align=='left') &&
+               (divR.align=='right') &&
+               (divC.align=='center') &&
+               (divJ.align=='justify') &&
+               (divB.align=='bad') &&
+               (divN.align==""))
+               print("Get: passed");
+       else
+               print("Get: failed");
+       
+       
+       divL.align = "right";
+       divR.align = "";
+       divC.align = "justify";
+       divJ.align = "bad";
+       divB.align = "left";
+       divN.align = "center";
+       
+       if ((divL.align=='right') &&
+               (divR.align=='') &&
+               (divC.align=='justify') &&
+               (divJ.align=='bad') &&
+               (divB.align=='left') &&
+               (divN.align=="center"))
+               print("Set: passed");
+       else
+               print("Set: failed");
+       
+}
+</script>
+</head>
+<body onload="test()">
+<p>Tests: getting and setting HTMLDivElement::align<br>
+</p>
+<p>Condition(s):<br>
+Testing valid, invalid, and empty values
+</p>
+<p>Success message: passed</p>
+<p>Failure message: failed</p>
+<hr>
+
+<!--
+<div align="left" id="divLeft">test left</div>
+<div align="right" id="divRight">test right</div>
+<div align="center" id="divCenter">test center</div>
+<div align="justify" id="divJustify">test justify</div>
+<div align="bad" id="divBad">test bad</div>
+<div id="divNone">test none</div>
+-->
+<div align="left" id="divLeft"></div>
+<div align="right" id="divRight"></div>
+<div align="center" id="divCenter"></div>
+<div align="justify" id="divJustify"></div>
+<div align="bad" id="divBad"></div>
+<div id="divNone"></div>
+
+
+<div id='console'/>
+
+</body>
+</html>
index 948d2d3dce4b53a7753f84a97d8c8a0609e2ea34..85fe9a67d3e769092a293e44b0b2a033a1452729 100644 (file)
@@ -1,3 +1,12 @@
+2005-06-30  Bruce DiBello  <bdibello@apple.com>
+
+        Reviewed by Geoff Garen.
+
+        Test cases added: getting and setting div.align
+
+        * layout-tests/fast/dom/HTMLDivElement/align/getset-expected.txt: Added.
+        * layout-tests/fast/dom/HTMLDivElement/align/getset.html: Added.
+
 2005-06-29  Anders Carlsson  <andersca@mac.com>
 
         Reviewed and landed by Darin Adler.