Title: [219572] trunk/LayoutTests
- Revision
- 219572
- Author
- cdu...@apple.com
- Date
- 2017-07-17 13:39:53 -0700 (Mon, 17 Jul 2017)
Log Message
fast/workers/worker-user-gesture.html crashes on iOS
https://bugs.webkit.org/show_bug.cgi?id=174592
Reviewed by Simon Fraser.
Make sure the tap/click event is fully processed before finishing the test by using
the promise returned by UIHelper.activateAt().
* fast/workers/worker-user-gesture.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (219571 => 219572)
--- trunk/LayoutTests/ChangeLog 2017-07-17 20:24:16 UTC (rev 219571)
+++ trunk/LayoutTests/ChangeLog 2017-07-17 20:39:53 UTC (rev 219572)
@@ -1,3 +1,15 @@
+2017-07-17 Chris Dumez <cdu...@apple.com>
+
+ fast/workers/worker-user-gesture.html crashes on iOS
+ https://bugs.webkit.org/show_bug.cgi?id=174592
+
+ Reviewed by Simon Fraser.
+
+ Make sure the tap/click event is fully processed before finishing the test by using
+ the promise returned by UIHelper.activateAt().
+
+ * fast/workers/worker-user-gesture.html:
+
2017-07-17 Simon Fraser <simon.fra...@apple.com>
clientX/clientY on TouchEvent.touches are wrong
Modified: trunk/LayoutTests/fast/workers/worker-user-gesture.html (219571 => 219572)
--- trunk/LayoutTests/fast/workers/worker-user-gesture.html 2017-07-17 20:24:16 UTC (rev 219571)
+++ trunk/LayoutTests/fast/workers/worker-user-gesture.html 2017-07-17 20:39:53 UTC (rev 219572)
@@ -18,12 +18,13 @@
let inputElement = document.getElementById("testButton");
let centerX = inputElement.offsetLeft + inputElement.offsetWidth / 2;
let centerY = inputElement.offsetTop + inputElement.offsetHeight / 2;
- UIHelper.activateAt(centerX, centerY);
- if (++gestureCount == 10) {
- finishJSTest();
- return;
- }
- setTimeout(doUserGesture, 0);
+ UIHelper.activateAt(centerX, centerY).then(function() {
+ if (++gestureCount == 10) {
+ finishJSTest();
+ return;
+ }
+ setTimeout(doUserGesture, 0);
+ });
}
setTimeout(doUserGesture, 0);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes