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 1614a33d22fd4eab166c77c0bfac00dd3a425d42..d9daa8630df4552b37975791c3163e14d0294722 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,7 +10,6 @@ async_test(function(t) { |
return; |
} |
doSetSelectionRange('focus'); |
- doSetSelectionRange('mousedown'); |
doSetSelectionRange('mouseup'); |
doSetSelectionRange('click'); |
t.done(); |
@@ -26,13 +25,8 @@ async_test(function(t) { |
eventSender.gestureTapDown(tx, ty); |
eventSender.gestureShowPress(tx, ty); |
eventSender.gestureTap(tx, ty); |
- if (eventType === 'mousedown') { |
- assert_equals(textfield.selectionStart, 0); |
- assert_equals(textfield.selectionEnd, 0); |
- } else { |
- assert_equals(textfield.selectionStart, 0); |
- assert_equals(textfield.selectionEnd, 5); |
- } |
+ assert_equals(textfield.selectionStart, 0); |
+ assert_equals(textfield.selectionEnd, 5); |
textfield.setSelectionRange(0, 0); |
textfield.removeEventListener(eventType, setSelectionRange); |
} |