editing/selection/ios/selection-handles-in-readonly-input.html times out
https://bugs.webkit.org/show_bug.cgi?id=203203
<rdar://problem/47710799>

Reviewed by Tim Horton.

This test began to fail in iOS 13, since we (intentionally) no longer show a keyboard when focusing `readonly`
inputs. The test is intended to verify that moving selection handles inside a readonly input field will not
cause the selection to disappear, but it currently waits forever for the keyboard to appear after initially
tapping a readonly input field.

We can fix this test by instead using a tap-and-half gesture to select the text ('aa').

* editing/selection/ios/selection-handles-in-readonly-input.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251387 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 114f209..935789f 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,20 @@
+2019-10-21  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        editing/selection/ios/selection-handles-in-readonly-input.html times out
+        https://bugs.webkit.org/show_bug.cgi?id=203203
+        <rdar://problem/47710799>
+
+        Reviewed by Tim Horton.
+
+        This test began to fail in iOS 13, since we (intentionally) no longer show a keyboard when focusing `readonly`
+        inputs. The test is intended to verify that moving selection handles inside a readonly input field will not
+        cause the selection to disappear, but it currently waits forever for the keyboard to appear after initially
+        tapping a readonly input field.
+
+        We can fix this test by instead using a tap-and-half gesture to select the text ('aa').
+
+        * editing/selection/ios/selection-handles-in-readonly-input.html:
+
 2019-10-21  Daniel Bates  <dabates@apple.com>
 
         Update expected result for fast/repaint/placeholder-after-caps-lock-hidden.html
diff --git a/LayoutTests/editing/selection/ios/selection-handles-in-readonly-input.html b/LayoutTests/editing/selection/ios/selection-handles-in-readonly-input.html
index 7582b0b..8e1270a 100644
--- a/LayoutTests/editing/selection/ios/selection-handles-in-readonly-input.html
+++ b/LayoutTests/editing/selection/ios/selection-handles-in-readonly-input.html
@@ -39,8 +39,14 @@
 }
 
 async function runTest() {
-    await UIHelper.activateAndWaitForInputSessionAt(100, 50);
-    input.setSelectionRange(0, 2);
+    // First, focus the readonly input.
+    await UIHelper.activateAt(100, 50);
+    await UIHelper.waitForDoubleTapDelay();
+
+    // Then, select 'aa' with a tap-and-half gesture.
+    await UIHelper.activateAt(100, 50);
+    await longPressAtPoint(100, 50);
+
     let grabberEndRect = null;
     while (!grabberEndRect || !grabberEndRect.width || !grabberEndRect.height)
         grabberEndRect = await UIHelper.getSelectionEndGrabberViewRect();