Title: [244383] trunk/LayoutTests
Revision
244383
Author
[email protected]
Date
2019-04-17 10:28:04 -0700 (Wed, 17 Apr 2019)

Log Message

[Mac iOS WK2] Layout Test http/tests/resourceLoadStatistics/ping-to-prevalent-resource.html is a flaky timeout
https://bugs.webkit.org/show_bug.cgi?id=196974

Reviewed by Brady Eidson.

* http/tests/resourceLoadStatistics/ping-to-prevalent-resource.html:
Make test do one thing at a time to avoid race conditions.
Clean up state on the server after test is finished to prevent corrupting future test state.

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (244382 => 244383)


--- trunk/LayoutTests/ChangeLog	2019-04-17 17:03:59 UTC (rev 244382)
+++ trunk/LayoutTests/ChangeLog	2019-04-17 17:28:04 UTC (rev 244383)
@@ -1,3 +1,14 @@
+2019-04-17  Alex Christensen  <[email protected]>
+
+        [Mac iOS WK2] Layout Test http/tests/resourceLoadStatistics/ping-to-prevalent-resource.html is a flaky timeout
+        https://bugs.webkit.org/show_bug.cgi?id=196974
+
+        Reviewed by Brady Eidson.
+
+        * http/tests/resourceLoadStatistics/ping-to-prevalent-resource.html:
+        Make test do one thing at a time to avoid race conditions.
+        Clean up state on the server after test is finished to prevent corrupting future test state.
+
 2019-04-17  Zalan Bujtas  <[email protected]>
 
 		[iOS] Unreviewed gardening.

Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/ping-to-prevalent-resource.html (244382 => 244383)


--- trunk/LayoutTests/http/tests/resourceLoadStatistics/ping-to-prevalent-resource.html	2019-04-17 17:03:59 UTC (rev 244382)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/ping-to-prevalent-resource.html	2019-04-17 17:28:04 UTC (rev 244383)
@@ -57,9 +57,9 @@
                 break;
             case "#step3":
                 // Set localhost as prevalent to put it in the blocking category.
-                document.location.hash = "step4";
                 testRunner.setStatisticsPrevalentResource(thirdPartyOrigin, true, function() {
                     testRunner.statisticsUpdateCookieBlocking(runTest);
+                    document.location.hash = "step4";
                 });
                 break;
             case "#step4":
@@ -73,7 +73,7 @@
                     openIframe(thirdPartyOrigin + "/contentextensions/resources/get-ping-data.php?test=ping-to-prevalent-resource", function() {
                         document.body.removeChild(document.getElementById("targetLink"));
                         setEnableFeature(false, function() {
-                            testRunner.notifyDone();
+                            fetch("/contentextensions/resources/delete-ping.php?test=ping-to-prevalent-resource").then(()=>{ testRunner.notifyDone(); });
                         });
                     });
                 });
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to