Closed
Bug 1176402
Opened 10 years ago
Closed 10 years ago
Make apz_test_native_event_utils.js and apz_test_utils.js more consistent
Categories
(Core :: Panning and Zooming, defect)
Core
Panning and Zooming
Tracking
()
RESOLVED
FIXED
mozilla41
| Tracking | Status | |
|---|---|---|
| firefox41 | --- | fixed |
People
(Reporter: kats, Assigned: botond)
References
Details
Attachments
(3 files)
We've been adding stuff to these helper JS files as we write more APZ mochitests, and so they've been evolving a bit. We should make some of the code in them more consistent. For example:
- synthesizeNativeWheel takes aX and aY relative to the top-left of aElement's containing window, but synthesizeNativeTouch takes them relative to the top-left of aElement's bounding client rect.
- some of the code uses _getDOMWindowUtils from EventUtils.js and other code uses SpecialPowers.getDOMWindowUtils
| Assignee | ||
Comment 1•10 years ago
|
||
I need some of these changes for my new approach for bug 1175585. Stealing with permission.
| Assignee | ||
Comment 2•10 years ago
|
||
Bug 1176402 - Update a call to a function that has since been renamed. r=kats
Attachment #8625725 -
Flags: review?(bugmail.mozilla)
| Assignee | ||
Comment 3•10 years ago
|
||
Bug 1176402 - Have synthesizeNativeWheel() and synthesizeNativeMouseMove() accept coordinates relative to the element's bounding rect. r=kats
Attachment #8625726 -
Flags: review?(bugmail.mozilla)
| Assignee | ||
Comment 4•10 years ago
|
||
Bug 1176402 - Obtain the DOMWindowUtils object consistently in the APZ testing native event helpers. r=kats
Attachment #8625727 -
Flags: review?(bugmail.mozilla)
| Assignee | ||
Comment 5•10 years ago
|
||
The first patch isn't really related, it's just something I noticed while writing this one and didn't feel it was worth filing a separate bug for it.
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b9bf22409137
| Reporter | ||
Comment 6•10 years ago
|
||
Comment on attachment 8625725 [details]
MozReview Request: Bug 1176402 - Update a call to a function that has since been renamed. r=kats
https://reviewboard.mozilla.org/r/11905/#review10427
Attachment #8625725 -
Flags: review?(bugmail.mozilla) → review+
| Reporter | ||
Updated•10 years ago
|
Attachment #8625726 -
Flags: review?(bugmail.mozilla) → review+
| Reporter | ||
Comment 7•10 years ago
|
||
Comment on attachment 8625726 [details]
MozReview Request: Bug 1176402 - Have synthesizeNativeWheel() and synthesizeNativeMouseMove() accept coordinates relative to the element's bounding rect. r=kats
https://reviewboard.mozilla.org/r/11907/#review10429
::: gfx/layers/apz/test/apz_test_native_event_utils.js:45
(Diff revision 1)
> +function coordinatesRelativeToWindow(aX, aY, aElement, aWindow) {
Compute the window from the element inside the function rather than passing in the window.
| Reporter | ||
Comment 8•10 years ago
|
||
Comment on attachment 8625727 [details]
MozReview Request: Bug 1176402 - Obtain the DOMWindowUtils object consistently in the APZ testing native event helpers. r=kats
https://reviewboard.mozilla.org/r/11909/#review10431
Ship It!
Attachment #8625727 -
Flags: review?(bugmail.mozilla) → review+
| Assignee | ||
Updated•10 years ago
|
Attachment #8625726 -
Flags: review+ → review?(bugmail.mozilla)
| Assignee | ||
Comment 9•10 years ago
|
||
Comment on attachment 8625726 [details]
MozReview Request: Bug 1176402 - Have synthesizeNativeWheel() and synthesizeNativeMouseMove() accept coordinates relative to the element's bounding rect. r=kats
Bug 1176402 - Have synthesizeNativeWheel() and synthesizeNativeMouseMove() accept coordinates relative to the element's bounding rect. r=kats
| Assignee | ||
Comment 10•10 years ago
|
||
Comment on attachment 8625727 [details]
MozReview Request: Bug 1176402 - Obtain the DOMWindowUtils object consistently in the APZ testing native event helpers. r=kats
Bug 1176402 - Obtain the DOMWindowUtils object consistently in the APZ testing native event helpers. r=kats
Attachment #8625727 -
Flags: review+ → review?(bugmail.mozilla)
| Assignee | ||
Comment 11•10 years ago
|
||
Addressed review comments, carrying r+.
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=699264800943
| Assignee | ||
Updated•10 years ago
|
Attachment #8625726 -
Flags: review?(bugmail.mozilla) → review+
| Assignee | ||
Updated•10 years ago
|
Attachment #8625727 -
Flags: review?(bugmail.mozilla) → review+
Comment 12•10 years ago
|
||
Comment 13•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/42fa3442672c
https://hg.mozilla.org/mozilla-central/rev/148e25920467
https://hg.mozilla.org/mozilla-central/rev/b70171b78167
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•