Closed Bug 1222383 Opened 9 years ago Closed 9 years ago

Send synthesized long tap event in text selection JS marionette test

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

defect
Not set
normal

Tracking

(b2g-master fixed)

RESOLVED FIXED
2.6 S1 - 11/20
Tracking Status
b2g-master --- fixed

People

(Reporter: chenpighead, Assigned: chenpighead)

References

Details

Attachments

(1 file)

Long tap to select texts is an essential step for testing functionality of text selection. In JS marionette, we use a series of chained actions to simulate long tap; however, some of the actions are not easy to understand. For example, calling moveByOffset(0, 0) in [1] looks meaningless, but it is a necessary step to prevent waking contextmenu. Thanks to Ting-Yu's work in Bug 1209841, now we can send synthesized long tap event in JS marionette test.

In this bug, I'm planning to use synthesized long tap event to refactor longPress() in [2] and longPressByPosition() in [3].


[1] http://mxr.mozilla.org/gaia/source/apps/system/test/marionette/lib/text_selection.js#126
[2] http://mxr.mozilla.org/gaia/source/apps/system/test/marionette/lib/text_selection.js#118
[3] http://mxr.mozilla.org/gaia/source/apps/system/test/marionette/lib/text_selection.js#123
Component: Selection → Gaia::System
Product: Core → Firefox OS
Comment on attachment 8688374 [details] [review]
[gaia] chenpighead:1222383 > mozilla-b2g:master

Hi Etienne, could you help review this? Thanks.
Attachment #8688374 - Flags: review?(etienne)
Comment on attachment 8688374 [details] [review]
[gaia] chenpighead:1222383 > mozilla-b2g:master

r=me with nit (we should maybe squash the commits into 1 too)
Attachment #8688374 - Flags: review?(etienne) → review+
(In reply to Etienne Segonzac (:etienne) from comment #3)
> Comment on attachment 8688374 [details] [review]
> [gaia] chenpighead:1222383 > mozilla-b2g:master
> 
> r=me with nit (we should maybe squash the commits into 1 too)

The comments have been addressed, and I also squash the commits into 1 as well.
Thank you for the review.
https://github.com/mozilla-b2g/gaia/commit/75e7f6fcb4ff3b52786fabf9cab0edb18174d953
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.6 S1 - 11/20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: