| Index: LayoutTests/fast/events/touch/gesture/gesture-tap-input-after-composition.html
|
| diff --git a/LayoutTests/fast/events/touch/gesture/gesture-tap-input-after-composition.html b/LayoutTests/fast/events/touch/gesture/gesture-tap-input-after-composition.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fc734cce1dde62848dc1adb77808c211655f7121
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/events/touch/gesture/gesture-tap-input-after-composition.html
|
| @@ -0,0 +1,31 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../../resources/js-test.js"></script>
|
| +<input id="input1" type="input">
|
| +<input id="input2" type="input">
|
| +<script>
|
| +description("This tests if the composition is reset before tapping of gesture");
|
| +
|
| +var sucessInput = false;
|
| +if (window.eventSender) {
|
| + var input = document.getElementById('input1');
|
| + var context = input.inputMethodContext;
|
| + input.focus();
|
| +
|
| + textInputController.setMarkedText('abcde', 1, 3);
|
| + shouldEvaluateTo('context.compositionStartOffset', 0);
|
| + shouldEvaluateTo('context.compositionEndOffset', 5);
|
| +
|
| + var input2 = document.getElementById('input2');
|
| + input2.addEventListener('input', function () {
|
| + sucessInput = true;
|
| + });
|
| + var x = input2.offsetLeft + input2.offsetWidth / 2;
|
| + var y = input2.offsetTop + input2.offsetHeight / 2;
|
| + eventSender.gestureTapDown(x, y);
|
| + eventSender.gestureShowPress(x, y);
|
| + eventSender.gestureTap(x, y);
|
| +
|
| + eventSender.keyDown('a');
|
| + shouldBeTrue('sucessInput');
|
| +}
|
| +</script>
|
|
|