2 'This test checks the scroll, client and offset dimension properties return "0" instead of undefined for an unrendered element. <div id="testDiv" style="display: none">x</div>'
5 var testDiv
= document
.getElementById("testDiv");
6 shouldBe("testDiv.offsetLeft", "0");
7 shouldBe("testDiv.offsetTop", "0");
8 shouldBe("testDiv.offsetWidth", "0");
9 shouldBe("testDiv.offsetHeight", "0");
10 shouldBe("testDiv.clientWidth", "0");
11 shouldBe("testDiv.clientHeight", "0");
12 shouldBe("testDiv.scrollLeft", "0");
13 shouldBe("testDiv.scrollTop", "0");
14 shouldBe("testDiv.scrollWidth", "0");
15 shouldBe("testDiv.scrollHeight", "0");