Title: [246804] trunk/LayoutTests
Revision
246804
Author
[email protected]
Date
2019-06-25 13:48:36 -0700 (Tue, 25 Jun 2019)

Log Message

Migrate LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store* test cases to setEnableFeature() and jsTestIsAsync
https://bugs.webkit.org/show_bug.cgi?id=199180
<rdar://problem/52085369>

Reviewed by Brent Fulgham.

* http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-expected.txt:
* http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour-expected.txt:
* http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour.html:
* http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (246803 => 246804)


--- trunk/LayoutTests/ChangeLog	2019-06-25 20:18:22 UTC (rev 246803)
+++ trunk/LayoutTests/ChangeLog	2019-06-25 20:48:36 UTC (rev 246804)
@@ -1,3 +1,16 @@
+2019-06-25  John Wilander  <[email protected]>
+
+        Migrate LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store* test cases to setEnableFeature() and jsTestIsAsync
+        https://bugs.webkit.org/show_bug.cgi?id=199180
+        <rdar://problem/52085369>
+
+        Reviewed by Brent Fulgham.
+
+        * http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-expected.txt:
+        * http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour-expected.txt:
+        * http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour.html:
+        * http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store.html:
+
 2019-06-25  Russell Epstein  <[email protected]>
 
         Layout Test imported/mozilla/svg/text/textpath-selection.svg is flaky.

Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-expected.txt (246803 => 246804)


--- trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-expected.txt	2019-06-25 20:18:22 UTC (rev 246803)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-expected.txt	2019-06-25 20:48:36 UTC (rev 246804)
@@ -1,6 +1,11 @@
-PASS successfullyParsed is true
+Tests clearing of website data store.
 
-TEST COMPLETE
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
 PASS Host classified as prevalent resource.
 PASS Host is no longer a prevalent resource after the store was cleared.
+PASS successfullyParsed is true
 
+TEST COMPLETE
+

Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour-expected.txt (246803 => 246804)


--- trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour-expected.txt	2019-06-25 20:18:22 UTC (rev 246803)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour-expected.txt	2019-06-25 20:48:36 UTC (rev 246804)
@@ -1,6 +1,11 @@
-PASS successfullyParsed is true
+Tests clearing of website data store (one hour).
 
-TEST COMPLETE
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
 PASS Host classified as prevalent resource.
 PASS Host is no longer a prevalent resource after the store was cleared.
+PASS successfullyParsed is true
 
+TEST COMPLETE
+

Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour.html (246803 => 246804)


--- trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour.html	2019-06-25 20:18:22 UTC (rev 246803)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour.html	2019-06-25 20:48:36 UTC (rev 246804)
@@ -2,11 +2,15 @@
 <html lang="en">
 <head>
     <meta charset="UTF-8">
-    <title>Test Cleared Store</title>
+    <title></title>
     <script src=""
+    <script src=""
 </head>
 <body>
 <script>
+    description("Tests clearing of website data store (one hour).");
+    jsTestIsAsync = true;
+
     const hostUnderTest = "127.0.0.1:8000";
     const statisticsUrl = "http://" + hostUnderTest + "/temp";
     const topFrameOrigin1 = "http://127.0.0.2:8000/temp";
@@ -19,10 +23,7 @@
         else
             testPassed("Host is no longer a prevalent resource after the store was cleared.");
 
-        internals.setResourceLoadStatisticsEnabled(false);
-        testRunner.statisticsResetToConsistentState(function() {
-            testRunner.notifyDone();
-        });
+        setEnableFeature(false, finishJSTest);
     }
 
     function testStep2() {
@@ -55,9 +56,9 @@
     }
 
     if (document.location.host === hostUnderTest && window.testRunner && window.internals) {
-        testRunner.waitUntilDone();
-        internals.setResourceLoadStatisticsEnabled(true);
-        runTestRunnerTest();
+        setEnableFeature(true, function () {
+            runTestRunnerTest();
+        });
     }
 </script>
 </body>

Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store.html (246803 => 246804)


--- trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store.html	2019-06-25 20:18:22 UTC (rev 246803)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store.html	2019-06-25 20:48:36 UTC (rev 246804)
@@ -4,9 +4,13 @@
     <meta charset="UTF-8">
     <title>Test Cleared Store</title>
     <script src=""
+    <script src=""
 </head>
 <body>
 <script>
+    description("Tests clearing of website data store.");
+    jsTestIsAsync = true;
+
     const hostUnderTest = "127.0.0.1:8000";
     const statisticsUrl = "http://" + hostUnderTest + "/temp";
     const topFrameOrigin1 = "http://127.0.0.2:8000/temp";
@@ -28,10 +32,7 @@
         else
             testPassed("Host is no longer a prevalent resource after the store was cleared.");
 
-        internals.setResourceLoadStatisticsEnabled(false);
-        testRunner.statisticsResetToConsistentState(function() {
-            testRunner.notifyDone();
-        });
+        setEnableFeature(false, finishJSTest);
     }
 
     function runTestRunnerTest() {
@@ -56,9 +57,9 @@
     }
 
     if (document.location.host === hostUnderTest && window.testRunner && window.internals) {
-        testRunner.waitUntilDone();
-        internals.setResourceLoadStatisticsEnabled(true);
-        runTestRunnerTest();
+        setEnableFeature(true, function () {
+            runTestRunnerTest();
+        });
     }
 </script>
 </body>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to