Title: [295217] trunk/LayoutTests
Revision
295217
Author
[email protected]
Date
2022-06-03 12:30:11 -0700 (Fri, 03 Jun 2022)

Log Message

[iOS] editing/selection/ios/do-not-hide-selection-in-visible-container.html fails on iPhone 12 simulator
https://bugs.webkit.org/show_bug.cgi?id=241270
rdar://86025461

Reviewed by Tim Horton.

This test currently fails when run on iPhone 12 simulator. Due to the slightly wider screen size, the row of buttons at
the top of the page no longer wraps to the next line, which in turn causes the output text to have one less space
character when compared to the output on iPhone SE.

To fix this, make the test robust against this difference by removing each button before the end of the test. This also
causes the text ouput on iPad to now match the expected output on iPhone, so we no longer require test expectations that
are specific to iPad vs. iPhone.

* LayoutTests/editing/selection/ios/do-not-hide-selection-in-visible-container-expected.txt:
* LayoutTests/editing/selection/ios/do-not-hide-selection-in-visible-container.html:
* LayoutTests/platform/ipad/editing/selection/ios/do-not-hide-selection-in-visible-container-expected.txt: Removed.

Canonical link: https://commits.webkit.org/251274@main

Modified Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/editing/selection/ios/do-not-hide-selection-in-visible-container-expected.txt (295216 => 295217)


--- trunk/LayoutTests/editing/selection/ios/do-not-hide-selection-in-visible-container-expected.txt	2022-06-03 17:11:25 UTC (rev 295216)
+++ trunk/LayoutTests/editing/selection/ios/do-not-hide-selection-in-visible-container-expected.txt	2022-06-03 19:30:11 UTC (rev 295217)
@@ -1,5 +1,5 @@
-First field  Second field  Third field Fourth field
 
+
 Verifies that native selection UI is not suppressed when focusing an input that is inside an empty container with `overflow: hidden`, but is positioned absolutely such that it is still visible. To manually verify, click on each of the four buttons to move focus into editable areas. After tapping the first and third buttons, you should not see a caret view; after tapping the second and fourth buttons, you should see a caret view.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/editing/selection/ios/do-not-hide-selection-in-visible-container.html (295216 => 295217)


--- trunk/LayoutTests/editing/selection/ios/do-not-hide-selection-in-visible-container.html	2022-06-03 17:11:25 UTC (rev 295216)
+++ trunk/LayoutTests/editing/selection/ios/do-not-hide-selection-in-visible-container.html	2022-06-03 19:30:11 UTC (rev 295217)
@@ -60,6 +60,7 @@
         await UIHelper.activateElementAndWaitForInputSession(buttonToTap);
         await ensureCaretIsVisible(expectedVisibility);
         document.activeElement.blur();
+        buttonToTap.remove();
     }
 
     await UIHelper.waitForKeyboardToHide();

Deleted: trunk/LayoutTests/platform/ipad/editing/selection/ios/do-not-hide-selection-in-visible-container-expected.txt (295216 => 295217)


--- trunk/LayoutTests/platform/ipad/editing/selection/ios/do-not-hide-selection-in-visible-container-expected.txt	2022-06-03 17:11:25 UTC (rev 295216)
+++ trunk/LayoutTests/platform/ipad/editing/selection/ios/do-not-hide-selection-in-visible-container-expected.txt	2022-06-03 19:30:11 UTC (rev 295217)
@@ -1,18 +0,0 @@
-First field  Second field  Third field  Fourth field
-
-Verifies that native selection UI is not suppressed when focusing an input that is inside an empty container with `overflow: hidden`, but is positioned absolutely such that it is still visible. To manually verify, click on each of the four buttons to move focus into editable areas. After tapping the first and third buttons, you should not see a caret view; after tapping the second and fourth buttons, you should see a caret view.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-Waiting for caret to hide.
-PASS Caret was hidden.
-Waiting for caret to show.
-PASS Caret was shown.
-Waiting for caret to hide.
-PASS Caret was hidden.
-Waiting for caret to show.
-PASS Caret was shown.
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to