Title: [238255] trunk/LayoutTests
- Revision
- 238255
- Author
- [email protected]
- Date
- 2018-11-15 15:15:08 -0800 (Thu, 15 Nov 2018)
Log Message
REGRESSION (r238038): [iOS] Layout test fast/forms/ios/validation-bubble-dismiss-on-tap.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=191710
<rdar://problem/46104093>
Reviewed by Simon Fraser.
There is a small amount of time after we ask to show the popover before the popover is actually shown on screen.
During this period, clicks are eaten and not reported to the view. For this reason, we keep tapping until the
popup is dismissed.
* fast/forms/ios/validation-bubble-dismiss-on-tap-expected.txt:
* fast/forms/ios/validation-bubble-dismiss-on-tap.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (238254 => 238255)
--- trunk/LayoutTests/ChangeLog 2018-11-15 22:42:56 UTC (rev 238254)
+++ trunk/LayoutTests/ChangeLog 2018-11-15 23:15:08 UTC (rev 238255)
@@ -1,3 +1,18 @@
+2018-11-15 Chris Dumez <[email protected]>
+
+ REGRESSION (r238038): [iOS] Layout test fast/forms/ios/validation-bubble-dismiss-on-tap.html is a flaky failure
+ https://bugs.webkit.org/show_bug.cgi?id=191710
+ <rdar://problem/46104093>
+
+ Reviewed by Simon Fraser.
+
+ There is a small amount of time after we ask to show the popover before the popover is actually shown on screen.
+ During this period, clicks are eaten and not reported to the view. For this reason, we keep tapping until the
+ popup is dismissed.
+
+ * fast/forms/ios/validation-bubble-dismiss-on-tap-expected.txt:
+ * fast/forms/ios/validation-bubble-dismiss-on-tap.html:
+
2018-11-15 Jiewen Tan <[email protected]>
[WebAuthN] Use a real nonce for CTAPHID_INIT
Modified: trunk/LayoutTests/fast/forms/ios/validation-bubble-dismiss-on-tap-expected.txt (238254 => 238255)
--- trunk/LayoutTests/fast/forms/ios/validation-bubble-dismiss-on-tap-expected.txt 2018-11-15 22:42:56 UTC (rev 238254)
+++ trunk/LayoutTests/fast/forms/ios/validation-bubble-dismiss-on-tap-expected.txt 2018-11-15 23:15:08 UTC (rev 238255)
@@ -3,7 +3,7 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS message is ""
+PASS Validation bubble was dismissed on tap
PASS successfullyParsed is true
TEST COMPLETE
Modified: trunk/LayoutTests/fast/forms/ios/validation-bubble-dismiss-on-tap.html (238254 => 238255)
--- trunk/LayoutTests/fast/forms/ios/validation-bubble-dismiss-on-tap.html 2018-11-15 22:42:56 UTC (rev 238254)
+++ trunk/LayoutTests/fast/forms/ios/validation-bubble-dismiss-on-tap.html 2018-11-15 23:15:08 UTC (rev 238255)
@@ -18,6 +18,33 @@
})();`
}
+ function doTap()
+ {
+ return new Promise((resolve) => {
+ testRunner.runUIScript(getTapAtPointUIScript(100, 100), function() {
+ resolve();
+ });
+ });
+ }
+
+ function tapUntilBubbleIsDismissed()
+ {
+ // There is a small amount of time after we ask to show the popover before the popover is actually shown on screen.
+ // During this period, clicks are eaten and not reported to the view. For this reason, we keep tapping until the
+ // popup is dismissed.
+ return new Promise((resolve) => {
+ doTap().then(() => {
+ getValidationMessage().then((message) => {
+ if (message === "") {
+ resolve();
+ return;
+ }
+ tapUntilBubbleIsDismissed().then(resolve);
+ });
+ });
+ });
+ }
+
function doTest()
{
if (!testRunner.runUIScript)
@@ -31,12 +58,9 @@
if (_message !== "Select this checkbox")
testFailed("Unexpected validation message: " + _message);
- testRunner.runUIScript(getTapAtPointUIScript(0, 0), function() {
- getValidationMessage().then((_message) => {
- message = _message;
- shouldBeEqualToString("message", ""); // Not visible.
- finishJSTest();
- });
+ tapUntilBubbleIsDismissed().then(() => {
+ testPassed("Validation bubble was dismissed on tap");
+ finishJSTest();
});
});
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes