Closed Bug 1311269 Opened 8 years ago Closed 8 years ago

[Pointer Events] Should only use `sendMouseEvent()` and `sendTouchEvent()` in PE testcases

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: bhsu, Assigned: bhsu)

Details

Attachments

(2 files)

We should only use `sendMouseEvent()` and `sendTouchEvent()` in PE testcases, from which we synthesize WidgetMouseEvents and WidgetTouchEvents to test pointer events automatically. Doing this will benefit us  Now there are two testcases not following this design, test_pointerevent_attributes_mouse-manual.html and test_pointerevent_change-touch-action-onpointerdown_touch-manual.html.
Assignee: nobody → bhsu
In this patch, I make both `sendMouseEvent()` and `sendTouchEvent()` more powerfull by granting the ability to decide the target position of the synthesized events.
In the patch, I update the two testcase no using `sendMouseEvent()` and `sendTouchEvent()`. In test_pointerevent_attributes_mouse-manual.html, I use the new API. As to test_pointerevent_change-touch-action-onpointerdown_touch-manual.html, I suggest disable it since we're not using the testcase right as the comment I left in the testcase. However, it's already disabled in mochitest.ini[0].

[0] http://searchfox.org/mozilla-central/source/dom/events/test/pointerevents/mochitest.ini#17
Attachment #8802788 - Flags: feedback?(sshih)
Attachment #8802792 - Flags: feedback?(sshih)
Hi Stone, do you mind giving feedback on these two patches?
Attachment #8802788 - Flags: feedback?(sshih) → feedback+
Attachment #8802792 - Flags: feedback?(sshih) → feedback+
Comment on attachment 8802788 [details] [diff] [review]
Part 1: Improve PE test automation Framework

Hi Olli,

Do you mind reviewing these patches?
Details are described in comment 1 and comment 2, respectively.
Attachment #8802788 - Flags: review?(bugs)
Attachment #8802792 - Flags: review?(bugs)
Comment on attachment 8802788 [details] [diff] [review]
Part 1: Improve PE test automation Framework

rs+
Attachment #8802788 - Flags: review?(bugs) → review+
Comment on attachment 8802792 [details] [diff] [review]
Part 2: Update related testcases.

rs+
Attachment #8802792 - Flags: review?(bugs) → review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d85188ac754e
Part 1: Improve PE test automation framework. f=sshih, r=smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/e94e8a28abd1
Part 2: Update related testcases. f=sshih, r=smaug
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/d85188ac754e
https://hg.mozilla.org/mozilla-central/rev/e94e8a28abd1
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: