Title: [247251] trunk/LayoutTests
- Revision
- 247251
- Author
- [email protected]
- Date
- 2019-07-08 20:10:36 -0700 (Mon, 08 Jul 2019)
Log Message
[iOS 13] paste-does-not-fire-promises-while-sanitizing-web-content.html times out when run with multiple iterations
https://bugs.webkit.org/show_bug.cgi?id=199597
Reviewed by Tim Horton.
Make this test more robust to work around bugs in iOS 13 that currently prevent some single tap gestures from
being recognized, due to conflicts with double tap gesture recognizers.
- Make both the subframe and editable element taller, so that they're easier to hit.
- Tap twice when attempting to trigger a paste, in hopes that at least one of the taps will be recognized as a
single click.
- Make several event listeners one-shot, to prevent the double tap gesture from triggering paste twice.
* editing/pasteboard/paste-does-not-fire-promises-while-sanitizing-web-content.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (247250 => 247251)
--- trunk/LayoutTests/ChangeLog 2019-07-09 03:06:12 UTC (rev 247250)
+++ trunk/LayoutTests/ChangeLog 2019-07-09 03:10:36 UTC (rev 247251)
@@ -1,3 +1,19 @@
+2019-07-08 Wenson Hsieh <[email protected]>
+
+ [iOS 13] paste-does-not-fire-promises-while-sanitizing-web-content.html times out when run with multiple iterations
+ https://bugs.webkit.org/show_bug.cgi?id=199597
+
+ Reviewed by Tim Horton.
+
+ Make this test more robust to work around bugs in iOS 13 that currently prevent some single tap gestures from
+ being recognized, due to conflicts with double tap gesture recognizers.
+ - Make both the subframe and editable element taller, so that they're easier to hit.
+ - Tap twice when attempting to trigger a paste, in hopes that at least one of the taps will be recognized as a
+ single click.
+ - Make several event listeners one-shot, to prevent the double tap gesture from triggering paste twice.
+
+ * editing/pasteboard/paste-does-not-fire-promises-while-sanitizing-web-content.html:
+
2019-07-08 Keith Miller <[email protected]>
Enable Intl.PluralRules and Intl.NumberFormatToParts by default
Modified: trunk/LayoutTests/editing/pasteboard/paste-does-not-fire-promises-while-sanitizing-web-content.html (247250 => 247251)
--- trunk/LayoutTests/editing/pasteboard/paste-does-not-fire-promises-while-sanitizing-web-content.html 2019-07-09 03:06:12 UTC (rev 247250)
+++ trunk/LayoutTests/editing/pasteboard/paste-does-not-fire-promises-while-sanitizing-web-content.html 2019-07-09 03:10:36 UTC (rev 247251)
@@ -11,16 +11,21 @@
#copy {
width: 100%;
- height: 50px;
+ height: 100%;
border: 1px dashed black;
}
#editor {
width: 100%;
- height: 100px;
+ height: 200px;
border: 1px dashed tomato;
text-align: center;
}
+
+iframe {
+ width: 100%;
+ height: 200px;
+}
</style>
</head>
<body>
@@ -27,7 +32,7 @@
<div id="editor" contenteditable></div>
<iframe id="copy" src="" id='copy' style='font-size: 40px; text-align: center;'>Click here to copy</div>
<script>
- copy.addEventListener('mousedown', event => {
+ document.body.addEventListener('mousedown', event => {
getSelection().selectAllChildren(copy);
document.execCommand('Copy');
getSelection().removeAllRanges();
@@ -58,6 +63,7 @@
await UIHelper.activateElement(frame);
await UIHelper.activateElement(editor);
+ await UIHelper.activateElement(editor);
checkDone();
});
@@ -66,7 +72,7 @@
Promise.resolve().then(() => textarea.focus());
document.execCommand("Paste");
event.preventDefault();
-});
+}, { "once": true });
editor.addEventListener("paste", () => {
testPassed("Handled paste.");
@@ -73,11 +79,11 @@
checkDone();
});
-editor.addEventListener("focus", () => testPassed("Focused editor."));
+editor.addEventListener("focus", () => testPassed("Focused editor."), { "once": true });
textarea.addEventListener("focus", () => {
testPassed("Focused textarea.");
checkDone();
-});
+}, { "once": true });
</script>
</body>
</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes