In message app, when changing cursor from "To:" onto body by single tap or long tap, we need to ensure the text selection dialog is shown and at the correct position. See Bug 1196176 comment #0 for the STR. What's critical is that after tapping on body, the script might change the selection object or scroll the content. Text selection dialog might receive extra caretstatechanged events. We probably could write such a test in apps/system/test/marionette/text_selection_test.js
You need to log in before you can comment on or make changes to this bug.