Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-tap-setrangetext-with-events.html

Issue 2664253002: Revert "Blink handle selection handle visibility" (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698