Bug 152306

Summary: [iOS Simulator] fast/forms/input-user-input-sanitization.html failing
Product: WebKit Reporter: Ryan Haddad <ryanhaddad>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, akeerthi, a_protyasha, cdumez, krollin
Priority: P2    
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: iOS 9.0   
Bug Depends on:    
Bug Blocks: 152130    

Description Ryan Haddad 2015-12-15 10:53:57 PST
[iOS Simulator] fast/forms/input-user-input-sanitization.html failing

Run:
<https://build.webkit.org/builders/Apple%20iOS%209%20Simulator%20Release%20WK2%20%28Tests%29/builds/1774>
Results:
<https://build.webkit.org/results/Apple%20iOS%209%20Simulator%20Release%20WK2%20(Tests)/r194107%20(1774)/results.html>

--- /Volumes/Data/slave/ios-simulator-9-release-tests-wk2/build/layout-test-results/fast/forms/input-user-input-sanitization-expected.txt
+++ /Volumes/Data/slave/ios-simulator-9-release-tests-wk2/build/layout-test-results/fast/forms/input-user-input-sanitization-actual.txt
@@ -3,12 +3,12 @@
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS focusAndType("email", "   foobar@example.com   ").value is "foobar@example.com"
-PASS focusAndType("password", "   foobar   ").value is "   foobar   "
-PASS focusAndType("search", "   foobar   ").value is "   foobar   "
-PASS focusAndType("telephone", "   123-456-7890   ").value is "   123-456-7890   "
-PASS focusAndType("text", "   foobar   ").value is "   foobar   "
-PASS focusAndType("url", "   https://foobar.example.com   ").value is "   https://foobar.example.com   "
+FAIL focusAndType("email", "   foobar@example.com   ").value should be foobar@example.com. Was .
+FAIL focusAndType("password", "   foobar   ").value should be    foobar   . Was .
+FAIL focusAndType("search", "   foobar   ").value should be    foobar   . Was .
+FAIL focusAndType("telephone", "   123-456-7890   ").value should be    123-456-7890   . Was .
+FAIL focusAndType("text", "   foobar   ").value should be    foobar   . Was .
+FAIL focusAndType("url", "   https://foobar.example.com   ").value should be    https://foobar.example.com   . Was .
 PASS successfullyParsed is true
 
 TEST COMPLETE
Comment 1 Ryan Haddad 2016-01-26 12:11:55 PST
Looking at this tests implementation, it uses eventSender.keyDown, which I believe is unsupported on iOS.
Comment 2 Chris Dumez 2016-01-26 12:13:29 PST
Keith should comment but we may just need to rebaseline for iOS here.
Comment 3 Ryan Haddad 2016-02-03 09:53:12 PST
Since this is always failing, skipped test on ios-simulator with <https://trac.webkit.org/r196069>
Comment 4 Ahmad Saleem 2024-03-26 17:24:39 PDT
We still has it skipped:

https://searchfox.org/wubkat/rev/fe11bcadadbf8b7ad5f95d337b6842b4b42982ec/LayoutTests/platform/ios/TestExpectations#2380

But as Comment 01 pointed it out it is due to 'keydown' event, should we move this rebaseline to appropriate list here:

https://searchfox.org/wubkat/rev/fe11bcadadbf8b7ad5f95d337b6842b4b42982ec/LayoutTests/platform/ios/TestExpectations#424

and remove this bug reference, since we don't have to do anything.

CCing - Abrar & Aditya for their input.
Comment 5 Aditya Keerthi 2024-03-26 17:30:17 PDT
We should rewrite the test to use UIHelper rather than eventSender directly.