| Index: LayoutTests/fast/forms/select-clientheight-large-size.html
|
| diff --git a/LayoutTests/fast/forms/select-clientheight-large-size.html b/LayoutTests/fast/forms/select-clientheight-large-size.html
|
| index 80d9c357a0418197594793a973fe3fe41dab96ba..fb10adb7e0b8aeb93cc4a9f17a07bf246f8357a4 100644
|
| --- a/LayoutTests/fast/forms/select-clientheight-large-size.html
|
| +++ b/LayoutTests/fast/forms/select-clientheight-large-size.html
|
| @@ -13,7 +13,7 @@
|
| }
|
|
|
| function multipleOfElement(elemId, multiple) {
|
| - return clientHeight(elemId) * multiple + (multiple - 1);
|
| + return clientHeight(elemId) * multiple;
|
| }
|
|
|
| function addSelect(id, numOptions)
|
| @@ -31,7 +31,7 @@
|
| shouldBe("clientHeight('select2')", "clientHeight('select1')");
|
| shouldBeTrue("getElemById('select2').setAttribute('size', '4'); clientHeight('select2') == clientHeight('select1')");
|
| shouldBeTrue("getElemById('select2').setAttribute('size', '5'); clientHeight('select2') > clientHeight('select1')");
|
| - shouldBeTrue("getElemById('select2').setAttribute('size', '8'); clientHeight('select2') == multipleOfElement('select1', 2)");
|
| - shouldBeTrue("getElemById('select2').setAttribute('size', '12'); clientHeight('select2') == multipleOfElement('select1', 3)");
|
| - shouldBeTrue("getElemById('select2').setAttribute('size', '16'); clientHeight('select2') == multipleOfElement('select1', 4)");
|
| + shouldBeCloseTo("getElemById('select2').setAttribute('size', '8'); clientHeight('select2')", multipleOfElement('select1', 2), 1);
|
| + shouldBeCloseTo("getElemById('select2').setAttribute('size', '12'); clientHeight('select2')", multipleOfElement('select1', 3), 1);
|
| + shouldBeCloseTo("getElemById('select2').setAttribute('size', '16'); clientHeight('select2')", multipleOfElement('select1', 4), 1);
|
| </script>
|
|
|