Closed
Bug 1251608
Opened 9 years ago
Closed 9 years ago
Get more APZ mochitests running on more platforms
Categories
(Core :: Panning and Zooming, defect)
Core
Panning and Zooming
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(3 files)
A bunch of the APZ mochitests are gonk-only when they don't need to be any more. I've been working on getting those mochitests running on other platforms during my compiles - I'm not quite done but filing this bug to track the issue.
Assignee | ||
Comment 1•9 years ago
|
||
This patch adds the annotation in APZCTreeManager. It also changes the
tree-building code in apz_test_utils to link together the actual paint
structures rather than create new wrapper nodes. This is more foolproof
(fixes a latent bug where a grandchild node whose parent has not yet
been processed ends up with the parent forcibly made a child of the root),
and allows extra properties to seamlessly ride along into the "tree".
Review commit: https://reviewboard.mozilla.org/r/37135/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/37135/
Attachment #8724741 -
Flags: review?(botond)
Assignee | ||
Comment 2•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/37137/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/37137/
Attachment #8724742 -
Flags: review?(botond)
Assignee | ||
Comment 3•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/37139/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/37139/
Attachment #8724743 -
Flags: review?(botond)
Updated•9 years ago
|
Attachment #8724741 -
Flags: review?(botond) → review+
Comment 4•9 years ago
|
||
Comment on attachment 8724741 [details]
MozReview Request: Bug 1251608 - Add a root-content annotation to the APZ test data structure. r?botond
https://reviewboard.mozilla.org/r/37135/#review34923
Thanks, this is quite a bit nicer!
::: gfx/layers/apz/test/mochitest/apz_test_utils.js:72
(Diff revision 1)
> + if (!!apzcTree.isRootContent) {
Is the "!!" necessary in an if condition?
Comment 5•9 years ago
|
||
Comment on attachment 8724742 [details]
MozReview Request: Bug 1251608 - Fix and enable test_bug982141 for all platforms. r?botond
https://reviewboard.mozilla.org/r/37137/#review34925
::: gfx/layers/apz/test/mochitest/mochitest.ini
(Diff revision 1)
> -skip-if = toolkit != 'gonk' # bug 991198
Bug 991198 is about window.open not working on B2G desktop. Is that still relevant?
Attachment #8724742 -
Flags: review?(botond) → review+
Comment 6•9 years ago
|
||
Comment on attachment 8724743 [details]
MozReview Request: Bug 1251608 - Fix and enable test_bug1151663 for all platforms. r?botond
https://reviewboard.mozilla.org/r/37139/#review34927
::: gfx/layers/apz/test/mochitest/helper_bug1151663.html:65
(Diff revision 1)
> - SimpleTest.is(apzcTree.children.length, 1, "expected a single root APZC");
> + // child APZC which is for the RCD (fennec case).
I'd reword this to make it clear that in the e10s/B2G case, the single root APZC *is* the RCD.
Attachment #8724743 -
Flags: review?(botond)
Comment 7•9 years ago
|
||
Comment on attachment 8724743 [details]
MozReview Request: Bug 1251608 - Fix and enable test_bug1151663 for all platforms. r?botond
https://reviewboard.mozilla.org/r/37139/#review34929
Attachment #8724743 -
Flags: review+
Assignee | ||
Comment 8•9 years ago
|
||
https://reviewboard.mozilla.org/r/37135/#review34923
> Is the "!!" necessary in an if condition?
I think technically no, but idiomatic Javascript uses !! when the thing you're testing might be undefined, which is the case here (isRootContent is either undefined, or "1" in JS). I'll add a comment to that effect as well to be more explicit.
Assignee | ||
Comment 9•9 years ago
|
||
https://reviewboard.mozilla.org/r/37137/#review34925
> Bug 991198 is about window.open not working on B2G desktop. Is that still relevant?
I don't think B2G desktop is still a thing, it's been replaced by Mulet. That bug can probably be closed, and regardless it's not relevant to this ini file anymore.
Assignee | ||
Comment 10•9 years ago
|
||
https://reviewboard.mozilla.org/r/37139/#review34927
> I'd reword this to make it clear that in the e10s/B2G case, the single root APZC *is* the RCD.
Done.
Comment 11•9 years ago
|
||
Assignee | ||
Comment 12•9 years ago
|
||
Oh, since I put these patches up we started running M-e10s on OS X as well. Hopefully they don't start failing there (they worked locally but I don't think I tested them on try...). If there's issues I can back out.
Comment 13•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/90e4525b2989
https://hg.mozilla.org/mozilla-central/rev/b592bfa4541d
https://hg.mozilla.org/mozilla-central/rev/954f09e238ca
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•