Title: [246673] trunk/LayoutTests
- Revision
- 246673
- Author
- [email protected]
- Date
- 2019-06-21 00:05:10 -0700 (Fri, 21 Jun 2019)
Log Message
fast/events/ios/click-event-and-display-contents.html times out on iPad
https://bugs.webkit.org/show_bug.cgi?id=199068
<rdar://problem/51899547>
Reviewed by Dean Jackson.
Querying the bounds of a "display: contents" element will always return 0 width and height. So let's position the element at 0,0
so that we can send a tap at that location and reliably tap on that element.
* fast/events/ios/click-event-and-display-contents.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (246672 => 246673)
--- trunk/LayoutTests/ChangeLog 2019-06-21 05:44:02 UTC (rev 246672)
+++ trunk/LayoutTests/ChangeLog 2019-06-21 07:05:10 UTC (rev 246673)
@@ -1,3 +1,16 @@
+2019-06-20 Antoine Quint <[email protected]>
+
+ fast/events/ios/click-event-and-display-contents.html times out on iPad
+ https://bugs.webkit.org/show_bug.cgi?id=199068
+ <rdar://problem/51899547>
+
+ Reviewed by Dean Jackson.
+
+ Querying the bounds of a "display: contents" element will always return 0 width and height. So let's position the element at 0,0
+ so that we can send a tap at that location and reliably tap on that element.
+
+ * fast/events/ios/click-event-and-display-contents.html:
+
2019-06-20 Simon Fraser <[email protected]>
Make it possible to include clipping in GraphicsLayer tree dumps
Modified: trunk/LayoutTests/fast/events/ios/click-event-and-display-contents.html (246672 => 246673)
--- trunk/LayoutTests/fast/events/ios/click-event-and-display-contents.html 2019-06-21 05:44:02 UTC (rev 246672)
+++ trunk/LayoutTests/fast/events/ios/click-event-and-display-contents.html 2019-06-21 07:05:10 UTC (rev 246673)
@@ -4,6 +4,11 @@
<title>This tests that a tap on an element with display: contents dispatches a "click" event.</title>
<script src=""
<style>
+
+body {
+ margin: 0;
+}
+
#target {
width: 100px;
height: 100px;
@@ -26,14 +31,11 @@
const target = document.getElementById("target");
target.addEventListener("click", event => {
- document.getElementById("target").innerText = "PASS";
+ target.innerText = "PASS";
testRunner.notifyDone();
});
- const bounds = target.getBoundingClientRect();
- const x = bounds.left + bounds.width / 2;
- const y = bounds.top + bounds.height / 2;
- tapAtPoint(x, y);
+ tapAtPoint(0, 0);
})();
</script>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes