Two non-native widget test fixes.
Categories
(Core :: Widget, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(3 files)
Assignee | ||
Comment 1•5 years ago
|
||
Our <select multiple> has enough padding so that both sides take more space that
one list item, and since this test sets the height explicitly and <select> has
box-sizing: border-box by default, page-up / page-down steps through one less
item than what the test expects.
I think this is a test bug, but let me know if you want some bug on file to
consider reducing this padding for non-native theme.
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
I've left checkbox / radio / range-thumb alone because they don't have borders
on gtk either. We need this for the next patch to fix our test.
In particular, our combination of padding + no border means that
sanityEventUtils tries to hit an <input>, but it hits the anonymous scrollable
element instead, and asserts that it doesn't.
I don't think that test is particularly correct, but implementing
GetWidgetBorder works around it, and seems like the right thing to do anyways.
Depends on D66239
Assignee | ||
Comment 3•5 years ago
|
||
Depending on the widget implementation details, hitting one pixel inside the
input may hit the input itself, or may hit the anonymous scrollable element
instead.
synthesizeMouseExpectEvent checks the originalTarget, for some reason:
I'm not sure what the reason for that is, or why test_sanityEventUtils needs to
test it using an <input>, but I don't want to think too hard about it.
This ensures we hit the border on the <input> and thus target the right element.
Depends on D66240
Comment 5•5 years ago
|
||
Backed out 3 changesets (bug 1621319) for Mochitest failures in Harness_sanity/test_sanityEventUtils.html
Log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=292593834&repo=autoland&lineNumber=5398
Push with failures:
https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&selectedJob=292593834&revision=9181798549f23ad1444142ac9d69a5aef90c9f1e
Backout:
https://hg.mozilla.org/integration/autoland/rev/814f2005218bd91bef0508131a696d81bc344424
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
bugherder |
Assignee | ||
Updated•5 years ago
|
Comment 9•5 years ago
|
||
bugherder |
Description
•