Title: [294868] trunk/LayoutTests
- Revision
- 294868
- Author
- [email protected]
- Date
- 2022-05-25 21:09:03 -0700 (Wed, 25 May 2022)
Log Message
Address flaky test case scroll-into-view-and-show-validation-message.html when run using WK1
https://bugs.webkit.org/show_bug.cgi?id=240875
Reviewed by Wenson Hsieh.
Address failing test case fast/forms/scroll-into-view-and-show-validation-message.html
when run using WK1. This test only fails when running WK1 and only when run
in parallel.
* LayoutTests/fast/forms/textarea-scrolled-endline-caret.html:
* LayoutTests/platform/mac-wk1/TestExpectations:
Canonical link: https://commits.webkit.org/250998@main
Modified Paths
Diff
Modified: trunk/LayoutTests/fast/forms/textarea-scrolled-endline-caret.html (294867 => 294868)
--- trunk/LayoutTests/fast/forms/textarea-scrolled-endline-caret.html 2022-05-26 03:49:06 UTC (rev 294867)
+++ trunk/LayoutTests/fast/forms/textarea-scrolled-endline-caret.html 2022-05-26 04:09:03 UTC (rev 294868)
@@ -1,9 +1,13 @@
+<!DOCTYPE html>
+<html>
<head>
+<script src=""
<script>
-function test()
+async function test()
{
if (window.testRunner)
testRunner.dumpAsText();
+
var ta = document.getElementById('ta')
var res = document.getElementById('res');
@@ -13,19 +17,23 @@
ta.blur();
ta.focus();
+
// click
if (window.eventSender) {
+
testRunner.waitUntilDone();
- requestAnimationFrame(() => {
- eventSender.mouseMoveTo(90, 20);
- eventSender.mouseDown();
- eventSender.mouseUp();
- if (ta.selectionEnd == 17)
- res.innerHTML = "Test Succeeded";
- else
- res.innerHTML = "Test Failed: caret is at " + ta.selectionEnd;
- testRunner.notifyDone();
- });
+ await UIHelper.renderingUpdate();
+
+ eventSender.mouseMoveTo(90, 20);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+
+ if (ta.selectionEnd == 17)
+ res.innerHTML = "Test Succeeded";
+ else
+ res.innerHTML = "Test Failed: caret is at " + ta.selectionEnd;
+
+ testRunner.notifyDone();
} else {
res.innerHTML = "Test can't run without event sender (part of DumpRenderTree). "
+ "To test manually, click at the middle of the line marked 9 and check that the caret appears after the 9.";
@@ -47,3 +55,4 @@
10</textarea>
<div id="res"></div>
</body>
+</html>
\ No newline at end of file
Modified: trunk/LayoutTests/platform/mac-wk1/TestExpectations (294867 => 294868)
--- trunk/LayoutTests/platform/mac-wk1/TestExpectations 2022-05-26 03:49:06 UTC (rev 294867)
+++ trunk/LayoutTests/platform/mac-wk1/TestExpectations 2022-05-26 04:09:03 UTC (rev 294868)
@@ -1844,4 +1844,3 @@
webkit.org/b/232630 fast/forms/autofocus-opera-003.html [ Failure ]
webkit.org/b/240841 fast/forms/scroll-into-view-and-show-validation-message.html [ Pass Failure ]
-webkit.org/b/240841 fast/forms/textarea-scrolled-endline-caret.html [ Pass Failure ]
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes