| Index: third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-tap-setrangetext-with-events.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-tap-setrangetext-with-events.html b/third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-tap-setrangetext-with-events.html
|
| index d9daa8630df4552b37975791c3163e14d0294722..1614a33d22fd4eab166c77c0bfac00dd3a425d42 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-tap-setrangetext-with-events.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-tap-setrangetext-with-events.html
|
| @@ -10,6 +10,7 @@ async_test(function(t) {
|
| return;
|
| }
|
| doSetSelectionRange('focus');
|
| + doSetSelectionRange('mousedown');
|
| doSetSelectionRange('mouseup');
|
| doSetSelectionRange('click');
|
| t.done();
|
| @@ -25,8 +26,13 @@ async_test(function(t) {
|
| eventSender.gestureTapDown(tx, ty);
|
| eventSender.gestureShowPress(tx, ty);
|
| eventSender.gestureTap(tx, ty);
|
| - assert_equals(textfield.selectionStart, 0);
|
| - assert_equals(textfield.selectionEnd, 5);
|
| + if (eventType === 'mousedown') {
|
| + assert_equals(textfield.selectionStart, 0);
|
| + assert_equals(textfield.selectionEnd, 0);
|
| + } else {
|
| + assert_equals(textfield.selectionStart, 0);
|
| + assert_equals(textfield.selectionEnd, 5);
|
| + }
|
| textfield.setSelectionRange(0, 0);
|
| textfield.removeEventListener(eventType, setSelectionRange);
|
| }
|
|
|