Changeset 246804 in webkit
- Timestamp:
- Jun 25, 2019 1:48:36 PM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r246799 r246804 1 2019-06-25 John Wilander <wilander@apple.com> 2 3 Migrate LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store* test cases to setEnableFeature() and jsTestIsAsync 4 https://bugs.webkit.org/show_bug.cgi?id=199180 5 <rdar://problem/52085369> 6 7 Reviewed by Brent Fulgham. 8 9 * http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-expected.txt: 10 * http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour-expected.txt: 11 * http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour.html: 12 * http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store.html: 13 1 14 2019-06-25 Russell Epstein <russell_e@apple.com> 2 15 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-expected.txt
r229152 r246804 1 Tests clearing of website data store. 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6 PASS Host classified as prevalent resource. 7 PASS Host is no longer a prevalent resource after the store was cleared. 1 8 PASS successfullyParsed is true 2 9 3 10 TEST COMPLETE 4 PASS Host classified as prevalent resource.5 PASS Host is no longer a prevalent resource after the store was cleared.6 11 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour-expected.txt
r229152 r246804 1 Tests clearing of website data store (one hour). 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6 PASS Host classified as prevalent resource. 7 PASS Host is no longer a prevalent resource after the store was cleared. 1 8 PASS successfullyParsed is true 2 9 3 10 TEST COMPLETE 4 PASS Host classified as prevalent resource.5 PASS Host is no longer a prevalent resource after the store was cleared.6 11 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour.html
r233888 r246804 3 3 <head> 4 4 <meta charset="UTF-8"> 5 <title> Test Cleared Store</title>5 <title></title> 6 6 <script src="/js-test-resources/js-test.js"></script> 7 <script src="resources/util.js"></script> 7 8 </head> 8 9 <body> 9 10 <script> 11 description("Tests clearing of website data store (one hour)."); 12 jsTestIsAsync = true; 13 10 14 const hostUnderTest = "127.0.0.1:8000"; 11 15 const statisticsUrl = "http://" + hostUnderTest + "/temp"; … … 20 24 testPassed("Host is no longer a prevalent resource after the store was cleared."); 21 25 22 internals.setResourceLoadStatisticsEnabled(false); 23 testRunner.statisticsResetToConsistentState(function() { 24 testRunner.notifyDone(); 25 }); 26 setEnableFeature(false, finishJSTest); 26 27 } 27 28 … … 56 57 57 58 if (document.location.host === hostUnderTest && window.testRunner && window.internals) { 58 testRunner.waitUntilDone();59 internals.setResourceLoadStatisticsEnabled(true);60 runTestRunnerTest();59 setEnableFeature(true, function () { 60 runTestRunnerTest(); 61 }); 61 62 } 62 63 </script> -
trunk/LayoutTests/http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store.html
r233888 r246804 5 5 <title>Test Cleared Store</title> 6 6 <script src="/js-test-resources/js-test.js"></script> 7 <script src="resources/util.js"></script> 7 8 </head> 8 9 <body> 9 10 <script> 11 description("Tests clearing of website data store."); 12 jsTestIsAsync = true; 13 10 14 const hostUnderTest = "127.0.0.1:8000"; 11 15 const statisticsUrl = "http://" + hostUnderTest + "/temp"; … … 29 33 testPassed("Host is no longer a prevalent resource after the store was cleared."); 30 34 31 internals.setResourceLoadStatisticsEnabled(false); 32 testRunner.statisticsResetToConsistentState(function() { 33 testRunner.notifyDone(); 34 }); 35 setEnableFeature(false, finishJSTest); 35 36 } 36 37 … … 57 58 58 59 if (document.location.host === hostUnderTest && window.testRunner && window.internals) { 59 testRunner.waitUntilDone();60 internals.setResourceLoadStatisticsEnabled(true);61 runTestRunnerTest();60 setEnableFeature(true, function () { 61 runTestRunnerTest(); 62 }); 62 63 } 63 64 </script>
Note: See TracChangeset
for help on using the changeset viewer.