⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243248 in webkit


Ignore:
Timestamp:
Mar 20, 2019, 3:48:04 PM (7 years ago)
Author:
dbates@webkit.org
Message:

REGRESSION (r243153): [iOS] TestWebKitAPI.FocusPreservationTests.ChangingFocusedNodeResetsFocusPreservationState is failing
https://bugs.webkit.org/show_bug.cgi?id=196031
<rdar://problem/49078172>

Reviewed by Tim Horton.

The test incorrectly assumes that calling -[WKWebView resignFirstResponder] is identical to dismissing the
<select> picker. This is no longer the case following r243135. Instead use testing SPI that invokes that
same code path used when the Done button is pressed to dismiss the <select> picker.

  • TestWebKitAPI/Tests/ios/FocusPreservationTests.mm:

(TestWebKitAPI::TEST):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r243240 r243248  
     12019-03-20  Daniel Bates  <dabates@apple.com>
     2
     3        REGRESSION (r243153): [iOS] TestWebKitAPI.FocusPreservationTests.ChangingFocusedNodeResetsFocusPreservationState is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=196031
     5        <rdar://problem/49078172>
     6
     7        Reviewed by Tim Horton.
     8
     9        The test incorrectly assumes that calling -[WKWebView resignFirstResponder] is identical to dismissing the
     10        <select> picker. This is no longer the case following r243135. Instead use testing SPI that invokes that
     11        same code path used when the Done button is pressed to dismiss the <select> picker.
     12
     13        * TestWebKitAPI/Tests/ios/FocusPreservationTests.mm:
     14        (TestWebKitAPI::TEST):
     15
    1162019-03-20  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Tools/TestWebKitAPI/Tests/ios/FocusPreservationTests.mm

    r237266 r243248  
    9797    EXPECT_NOT_NULL(webView.textInputContentView.inputView);
    9898    [webView selectFormAccessoryPickerRow:1];
    99     EXPECT_TRUE([webView resignFirstResponder]);
     99    [webView dismissFormAccessoryView];
    100100    EXPECT_FALSE([webView stringByEvaluatingJavaScript:@"document.activeElement == document.querySelector('select')"].boolValue);
    101101    EXPECT_EQ(1, [webView stringByEvaluatingJavaScript:@"document.querySelector('select').selectedIndex"].intValue);
Note: See TracChangeset for help on using the changeset viewer.