Title: [251301] trunk/LayoutTests
- Revision
- 251301
- Author
- [email protected]
- Date
- 2019-10-18 15:23:55 -0700 (Fri, 18 Oct 2019)
Log Message
fast/events/ios/forward-delete-in-editable.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=203049
<rdar://problem/52969457>
Reviewed by Wenson Hsieh.
Now that <rdar://problem/45772078> is fixed we can write the test such that we check the test
result after we receive a DOM key up for the forward delete. Currently the test makes use of a
workaround that incorrectly assumes that the keyboard will call back into WebKit to perform the
forward deletion before the web process blur()s the field. This is not guaranteed to happen.
Instead wait until we receive a DOM key up for the delete key.
* fast/events/ios/forward-delete-in-editable.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (251300 => 251301)
--- trunk/LayoutTests/ChangeLog 2019-10-18 22:21:56 UTC (rev 251300)
+++ trunk/LayoutTests/ChangeLog 2019-10-18 22:23:55 UTC (rev 251301)
@@ -1,5 +1,21 @@
2019-10-18 Daniel Bates <[email protected]>
+ fast/events/ios/forward-delete-in-editable.html is a flaky failure
+ https://bugs.webkit.org/show_bug.cgi?id=203049
+ <rdar://problem/52969457>
+
+ Reviewed by Wenson Hsieh.
+
+ Now that <rdar://problem/45772078> is fixed we can write the test such that we check the test
+ result after we receive a DOM key up for the forward delete. Currently the test makes use of a
+ workaround that incorrectly assumes that the keyboard will call back into WebKit to perform the
+ forward deletion before the web process blur()s the field. This is not guaranteed to happen.
+ Instead wait until we receive a DOM key up for the delete key.
+
+ * fast/events/ios/forward-delete-in-editable.html:
+
+2019-10-18 Daniel Bates <[email protected]>
+
Layout Test http/tests/security/contentSecurityPolicy/iframe-allowed-when-loaded-via-_javascript_-url.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=202481
<rdar://problem/55916200>
Modified: trunk/LayoutTests/fast/events/ios/forward-delete-in-editable.html (251300 => 251301)
--- trunk/LayoutTests/fast/events/ios/forward-delete-in-editable.html 2019-10-18 22:21:56 UTC (rev 251300)
+++ trunk/LayoutTests/fast/events/ios/forward-delete-in-editable.html 2019-10-18 22:23:55 UTC (rev 251301)
@@ -24,17 +24,15 @@
inputElement.setSelectionRange(0, 0);
return;
}
- // FIXME: We cannot listen for a keyup event because the forward delete key does not generate one
- // due to <rdar://problem/45772078>. So, we listen for a blur event.
- inputElement.addEventListener("blur", checkResultAndNotifyDone, {once: true});
+ inputElement.addEventListener("keyup", checkResultAndNotifyDone, {once: true});
await UIHelper.activateFormControl(inputElement);
inputElement.setSelectionRange(0, 0);
await UIHelper.typeCharacter("forwardDelete");
- inputElement.blur();
}
-function checkResultAndNotifyDone()
+function checkResultAndNotifyDone(keyEvent)
{
+ console.assert(keyEvent.key === "Delete");
shouldBeEqualToString('document.getElementById("input").value', "ext");
document.body.removeChild(document.getElementById("test-container"));
finishJSTest();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes