Closed Bug 422050 Opened 15 years ago Closed 15 years ago
position test failure
I hit test failures with test_position. I don't see anything wrong with the test, but I'm not sure I understand the failures. The failures are: not ok - button1 client rect right got 101, expecting 99 not ok - button1 scrolled client rect right got 101, expecting 99 not ok - button1 scrolled client rect right got 101, expecting 99 Assuming I didn't remove anything important, I've attached a simpler testcase for the first failure (prints "got 100.88333129882812 (fail)").
The tests are not accounting for some margin/border/padding that your theme has. The testcase here for instance isn't accounting for the button's margin.
Any pointers for what to look at to identify the problem? Or... put another way: why should getBoundingClientRect().right be 99?
Er, I just said in the last comment. Are you asking about this testcase or test_position.xul? If the latter, you would need to look in the dom inspector to find out what element had an extra border/margin/padding and change the test to account for it.
default min-width on a button is 6.3em, which works out to 92px for me.
Assignee: nobody → ajschult
Status: NEW → ASSIGNED
Attachment #309604 - Flags: review?(enndeakin)
My other box has an abnormally high line-height and this seems to translate to a minimum height for the button. Overriding minheight gets the test passing there.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.