Title: [247906] trunk/LayoutTests
Revision
247906
Author
[email protected]
Date
2019-07-29 10:15:24 -0700 (Mon, 29 Jul 2019)

Log Message

REGRESSION (r247898): Multiple Layout Tests in http/tests/contentdispositionattachmentsandbox/* are timing out on iOS
<rdar://problem/53664817>

* http/tests/contentdispositionattachmentsandbox/resources/referer-header-stripped.js:
(onload):
iOS has eventSender, so this reorganizing didn't work (well, it worked for macOS...).
Instead, check which platform we're on and use touch vs. mouse events by
platform instead of by available API.

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (247905 => 247906)


--- trunk/LayoutTests/ChangeLog	2019-07-29 16:42:23 UTC (rev 247905)
+++ trunk/LayoutTests/ChangeLog	2019-07-29 17:15:24 UTC (rev 247906)
@@ -1,3 +1,14 @@
+2019-07-29  Tim Horton  <[email protected]>
+
+        REGRESSION (r247898): Multiple Layout Tests in http/tests/contentdispositionattachmentsandbox/* are timing out on iOS
+        <rdar://problem/53664817>
+
+        * http/tests/contentdispositionattachmentsandbox/resources/referer-header-stripped.js:
+        (onload):
+        iOS has eventSender, so this reorganizing didn't work (well, it worked for macOS...).
+        Instead, check which platform we're on and use touch vs. mouse events by
+        platform instead of by available API.
+
 2019-07-28  Tim Horton  <[email protected]>
 
         Reorganize UIScriptController into platform-specific subclasses

Modified: trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/resources/referer-header-stripped.js (247905 => 247906)


--- trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/resources/referer-header-stripped.js	2019-07-29 16:42:23 UTC (rev 247905)
+++ trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/resources/referer-header-stripped.js	2019-07-29 17:15:24 UTC (rev 247906)
@@ -14,11 +14,12 @@
     var y = element.offsetTop + 10;
 
     if (window.testRunner) {
-        if (window.eventSender) {
+        if (testRunner.isIOSFamily)
+            testRunner.runUIScript("(function() { uiController.singleTapAtPoint(" + x + ", " + y + "); })()");
+        else if (window.eventSender) {
             eventSender.mouseMoveTo(x, y);
             eventSender.mouseDown();
-            eventSender.mouseUp();
-        } else if (testRunner.runUIScript)
-            testRunner.runUIScript("(function() { uiController.singleTapAtPoint(" + x + ", " + y + "); })()");
+            eventSender.mouseUp();    
+        }
     }
 }
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to