179
179
TestExtras.touchClick(0, testMain, 0, 0);
182
function test_long_tap_on_selected_text_data() {
184
{tag: "TextField", input: textField},
185
{tag: "TextArea", input: textArea},
188
function test_long_tap_on_selected_text(data) {
189
data.input.focus = true;
190
verify(data.input.focus, "Text input doesn't have the focus!")
191
data.input.selectWord();
192
var selectedText = data.input.selectedText;
193
verify(selectedText !== "", "No text selected!");
195
popupSpy.target = findChild(data.input, "input_handler");
196
TestExtras.touchLongPress(0, data.input, guPoint(4, 2));
197
waitForRendering(data.input, 500);
199
compare(data.input.selectedText, selectedText, "Text selection should be the same!");
202
TestExtras.touchRelease(0, data.input, guPoint(2, 2));
204
TestExtras.touchClick(0, testMain, guPoint(0, 0));
207
182
function test_select_text_by_dragging_cursor_handler_data() {
209
184
{tag: "TextField", input: textField, initialCursorPosition: 0, cursorName: "selectionEnd", delta: guPoint(10, 0)},