Changeset 251387 in webkit


Ignore:
Timestamp:
Oct 21, 2019 3:07:03 PM (5 years ago)
Author:
Wenson Hsieh
Message:

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:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r251385 r251387  
     12019-10-21  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        editing/selection/ios/selection-handles-in-readonly-input.html times out
     4        https://bugs.webkit.org/show_bug.cgi?id=203203
     5        <rdar://problem/47710799>
     6
     7        Reviewed by Tim Horton.
     8
     9        This test began to fail in iOS 13, since we (intentionally) no longer show a keyboard when focusing `readonly`
     10        inputs. The test is intended to verify that moving selection handles inside a readonly input field will not
     11        cause the selection to disappear, but it currently waits forever for the keyboard to appear after initially
     12        tapping a readonly input field.
     13
     14        We can fix this test by instead using a tap-and-half gesture to select the text ('aa').
     15
     16        * editing/selection/ios/selection-handles-in-readonly-input.html:
     17
    1182019-10-21  Daniel Bates  <dabates@apple.com>
    219
  • trunk/LayoutTests/editing/selection/ios/selection-handles-in-readonly-input.html

    r234661 r251387  
    4040
    4141async function runTest() {
    42     await UIHelper.activateAndWaitForInputSessionAt(100, 50);
    43     input.setSelectionRange(0, 2);
     42    // First, focus the readonly input.
     43    await UIHelper.activateAt(100, 50);
     44    await UIHelper.waitForDoubleTapDelay();
     45
     46    // Then, select 'aa' with a tap-and-half gesture.
     47    await UIHelper.activateAt(100, 50);
     48    await longPressAtPoint(100, 50);
     49
    4450    let grabberEndRect = null;
    4551    while (!grabberEndRect || !grabberEndRect.width || !grabberEndRect.height)
Note: See TracChangeset for help on using the changeset viewer.