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)

defect
Not set
normal

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
I need some of these changes for my new approach for bug 1175585. Stealing with permission.
Assignee: bugmail.mozilla → botond
Blocks: 1175585
No longer depends on: 1175585
Bug 1176402 - Update a call to a function that has since been renamed. r=kats
Attachment #8625725 - Flags: review?(bugmail.mozilla)
Bug 1176402 - Have synthesizeNativeWheel() and synthesizeNativeMouseMove() accept coordinates relative to the element's bounding rect. r=kats
Attachment #8625726 - Flags: review?(bugmail.mozilla)
Bug 1176402 - Obtain the DOMWindowUtils object consistently in the APZ testing native event helpers. r=kats
Attachment #8625727 - Flags: review?(bugmail.mozilla)
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
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+
Attachment #8625726 - Flags: review?(bugmail.mozilla) → review+
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.
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+
Attachment #8625726 - Flags: review+ → review?(bugmail.mozilla)
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
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)
Addressed review comments, carrying r+. Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=699264800943
Attachment #8625726 - Flags: review?(bugmail.mozilla) → review+
Attachment #8625727 - Flags: review?(bugmail.mozilla) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: