Closed
Bug 1465864
Opened 7 years ago
Closed 7 years ago
Re-enable test_group_hittest.html for QR platforms
Categories
(Core :: Panning and Zooming, enhancement, P3)
Tracking
()
RESOLVED
FIXED
mozilla62
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(3 files)
In bug 1436287 I disabled test_group_hittest.html for webrender because of high frequency failures. Now that async scene building has been turned on in CI we should be able to re-enable this.
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
That try push looks good, the only orange is a different pre-existing issue.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8982481 [details]
Bug 1465864 - Make hit-testing mochitest failure messages nicer.
https://reviewboard.mozilla.org/r/248450/#review254856
Displaying mismatching values in string form is a nice touch :)
::: gfx/layers/apz/test/mochitest/apz_test_utils.js:548
(Diff revision 1)
> }
>
> +// Returns a canonical stringification of the hitInfo bitfield.
> +function hitInfoToString(hitInfo) {
> + var strs = [];
> + for (var flag in APZHitResultFlags) {
I'm a bit confused about the semantics here. You can iterate over a WebIDL namespace, and the elements of that iteration are the names of the namespace elements in string form? And then you can index into the namespace with these strings to recover the element values?
::: gfx/layers/apz/test/mochitest/apz_test_utils.js:566
(Diff revision 1)
> +
> +// Takes an object returned by hitTest, along with the expected values, and
> +// asserts that they match. Notably, it uses hitInfoToString to provide a
> +// more useful message for the case that the hit info doesn't match
> +function checkHitResult(hitResult, expectedHitInfo, expectedScrollId, desc) {
> + is(hitInfoToString(hitResult.hitInfo), hitInfoToString(expectedHitInfo), desc + " hit info");
The fact that we're using the strings for the comparison instead of just for output grates a bit, but ok, it's just test code.
Attachment #8982481 -
Flags: review?(botond) → review+
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8982482 [details]
Bug 1465864 - Update mochitest code for changes in bug 1443424.
https://reviewboard.mozilla.org/r/248452/#review254862
Always nice to find out a change you've made allows simplifying things elsewhere :)
Attachment #8982482 -
Flags: review?(botond) → review+
Comment 8•7 years ago
|
||
mozreview-review |
Comment on attachment 8982483 [details]
Bug 1465864 - Enable test_group_hittest for webrender.
https://reviewboard.mozilla.org/r/248454/#review254864
\o/
Attachment #8982483 -
Flags: review?(botond) → review+
Assignee | ||
Comment 9•7 years ago
|
||
(In reply to Botond Ballo [:botond] from comment #6)
> I'm a bit confused about the semantics here. You can iterate over a WebIDL
> namespace, and the elements of that iteration are the names of the namespace
> elements in string form? And then you can index into the namespace with
> these strings to recover the element values?
Yeah, basically. In JS there is no "namespace" concept, I think it just gets mapped to a regular object with enumerable properties. So it's equivalent to `APZHitResultFlags["INVISIBLE"] = 0` and so on.
> ::: gfx/layers/apz/test/mochitest/apz_test_utils.js:566
> > +function checkHitResult(hitResult, expectedHitInfo, expectedScrollId, desc) {
> > + is(hitInfoToString(hitResult.hitInfo), hitInfoToString(expectedHitInfo), desc + " hit info");
>
> The fact that we're using the strings for the comparison instead of just for
> output grates a bit, but ok, it's just test code.
Yeah I was trying to avoid that, but the is() function prints the arguments directly and that's where we want the strings :/
Comment 10•7 years ago
|
||
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/46bd77a82886
Make hit-testing mochitest failure messages nicer. r=botond
https://hg.mozilla.org/integration/autoland/rev/b9580410937c
Update mochitest code for changes in bug 1443424. r=botond
https://hg.mozilla.org/integration/autoland/rev/7305a5747306
Enable test_group_hittest for webrender. r=botond
Comment 11•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/46bd77a82886
https://hg.mozilla.org/mozilla-central/rev/b9580410937c
https://hg.mozilla.org/mozilla-central/rev/7305a5747306
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in
before you can comment on or make changes to this bug.
Description
•