Title: [251773] trunk/LayoutTests
- Revision
- 251773
- Author
- [email protected]
- Date
- 2019-10-30 07:18:07 -0700 (Wed, 30 Oct 2019)
Log Message
Fix autoscroll test to work on iPad.
https://bugs.webkit.org/show_bug.cgi?id=203598
<rdar://problem/51863703>
Reviewed by Wenson Hsieh.
iPads are much taller than iPhones, so to test autoscrolling under a
software keyboard, we need to return several more times.
Also take the opportunity to make the test more robust to races.
* fast/events/autoscroll-with-software-keyboard.html:
* platform/ipad/TestExpectations:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (251772 => 251773)
--- trunk/LayoutTests/ChangeLog 2019-10-30 14:14:58 UTC (rev 251772)
+++ trunk/LayoutTests/ChangeLog 2019-10-30 14:18:07 UTC (rev 251773)
@@ -1,3 +1,18 @@
+2019-10-30 Megan Gardner <[email protected]>
+
+ Fix autoscroll test to work on iPad.
+ https://bugs.webkit.org/show_bug.cgi?id=203598
+ <rdar://problem/51863703>
+
+ Reviewed by Wenson Hsieh.
+
+ iPads are much taller than iPhones, so to test autoscrolling under a
+ software keyboard, we need to return several more times.
+ Also take the opportunity to make the test more robust to races.
+
+ * fast/events/autoscroll-with-software-keyboard.html:
+ * platform/ipad/TestExpectations:
+
2019-10-30 Frederic Wang <[email protected]>
Import WPT tests for scrollend and overscroll events
Modified: trunk/LayoutTests/fast/events/autoscroll-with-software-keyboard.html (251772 => 251773)
--- trunk/LayoutTests/fast/events/autoscroll-with-software-keyboard.html 2019-10-30 14:14:58 UTC (rev 251772)
+++ trunk/LayoutTests/fast/events/autoscroll-with-software-keyboard.html 2019-10-30 14:18:07 UTC (rev 251773)
@@ -15,14 +15,9 @@
return;
var output = '';
- var firstTargetRect = document.getElementById('editable').getBoundingClientRect();
-
- var pressPointX = firstTargetRect.x;
- var pressPointY = firstTargetRect.y;
-
- await tapAtPoint(pressPointX,pressPointY);
- await UIHelper.enterText("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nTest");
+ await UIHelper.activateElementAndWaitForInputSession(document.getElementById('editable'));
+ await UIHelper.enterText("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nTest");
var firstPageOffset = window.pageYOffset;
if (window.pageYOffset > 0)
@@ -31,7 +26,7 @@
output += 'FAIL: page has failed to scroll when caret is behind software keyboard.';
output += '<br>';
- await UIHelper.enterText("\n\n\n\n\n\n\n\n\n\n\n\n\n\nTest");
+ await UIHelper.enterText("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nTest");
if (window.pageYOffset > 0 && window.pageYOffset > firstPageOffset)
output += 'PASS: page has continuted to scroll when caret is beyond the edge of the screen.';
else
Modified: trunk/LayoutTests/platform/ipad/TestExpectations (251772 => 251773)
--- trunk/LayoutTests/platform/ipad/TestExpectations 2019-10-30 14:14:58 UTC (rev 251772)
+++ trunk/LayoutTests/platform/ipad/TestExpectations 2019-10-30 14:18:07 UTC (rev 251773)
@@ -40,9 +40,6 @@
webkit.org/b/194259 fast/events/ios/rotation/safari-like-rotation.html [ Skip ]
webkit.org/b/194259 fast/events/ios/viewport-no-width-value-allows-double-tap.html [ Skip ]
-# <rdar://problem/51863703> [ iPad Sim ] New Layout test fast/events/autoscroll-with-software-keyboard.html is failing on iOS 13 iPad Simulator testers
-fast/events/autoscroll-with-software-keyboard.html [ Failure ]
-
# This tests an iphone-specific behavior so is expected to fail on iPad.
fast/scrolling/ios/overflow-scrolling-touch-enabled-stacking.html [ ImageOnlyFailure ]
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes