Changeset 243248 in webkit
- Timestamp:
- Mar 20, 2019, 3:48:04 PM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
TestWebKitAPI/Tests/ios/FocusPreservationTests.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r243240 r243248 1 2019-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 1 16 2019-03-20 Chris Dumez <cdumez@apple.com> 2 17 -
trunk/Tools/TestWebKitAPI/Tests/ios/FocusPreservationTests.mm
r237266 r243248 97 97 EXPECT_NOT_NULL(webView.textInputContentView.inputView); 98 98 [webView selectFormAccessoryPickerRow:1]; 99 EXPECT_TRUE([webView resignFirstResponder]);99 [webView dismissFormAccessoryView]; 100 100 EXPECT_FALSE([webView stringByEvaluatingJavaScript:@"document.activeElement == document.querySelector('select')"].boolValue); 101 101 EXPECT_EQ(1, [webView stringByEvaluatingJavaScript:@"document.querySelector('select').selectedIndex"].intValue);
Note:
See TracChangeset
for help on using the changeset viewer.