Changeset 249833 in webkit
- Timestamp:
- Sep 13, 2019, 7:42:14 AM (6 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r249831 r249833 1 2019-09-13 Chris Dumez <cdumez@apple.com> 2 3 Stop using testRunner.setPrivateBrowsingEnabled_DEPRECATED() in http/tests/security/appcache-in-private-browsing.html 4 https://bugs.webkit.org/show_bug.cgi?id=201704 5 6 Reviewed by Youenn Fablet. 7 8 Stop using testRunner.setPrivateBrowsingEnabled_DEPRECATED() in http/tests/security/appcache-in-private-browsing.html 9 and use the new useEphemeralSession WKTR / DRT flag instead. 10 11 * http/tests/security/appcache-in-private-browsing-expected.txt: 12 * http/tests/security/appcache-in-private-browsing.html: 13 * http/tests/security/resources/frame-for-appcache-in-private-browsing.html: 14 * platform/mac-wk2/TestExpectations: 15 1 16 2019-09-13 Joseph Pecoraro <pecoraro@apple.com> 2 17 -
trunk/LayoutTests/http/tests/security/appcache-in-private-browsing-expected.txt
r231450 r249833 1 CONSOLE MESSAGE: line 1: ApplicationCache is deprecated. Please use ServiceWorkers instead.2 CONSOLE MESSAGE: line 31: Application cache not loaded3 1 This test passes if the application cache does not load while in private browsing 4 2 … … 8 6 Frame: '<!--frame1-->' 9 7 -------- 8 Application cache not loaded 10 9 -
trunk/LayoutTests/http/tests/security/appcache-in-private-browsing.html
r249542 r249833 1 <!-- webkit-test-runner [ useEphemeralSession=true ] --> 1 2 <html> 2 3 <head> … … 8 9 } 9 10 10 function finishTest( frame) {11 function finishTest() { 11 12 if (window.testRunner) 12 13 testRunner.notifyDone(); 13 }14 15 function enterPrivateBrowsing(frame) {16 if (window.testRunner)17 testRunner.setPrivateBrowsingEnabled_DEPRECATED(true);18 frame.onload = finishTest;19 frame.contentWindow.location.reload();20 14 } 21 15 </script> … … 23 17 <body> 24 18 <p>This test passes if the application cache does not load while in private browsing</p> 25 <iframe src="resources/frame-for-appcache-in-private-browsing.html" onload=" enterPrivateBrowsing(this)"></iframe>19 <iframe src="resources/frame-for-appcache-in-private-browsing.html" onload="finishTest()"></iframe> 26 20 </body> 27 21 </html> -
trunk/LayoutTests/http/tests/security/appcache-switching-private-browsing-expected.txt
r231450 r249833 9 9 Frame: '<!--frame1-->' 10 10 -------- 11 Application cache loaded 12 Application cache not loaded 11 13 -
trunk/LayoutTests/http/tests/security/resources/frame-for-appcache-in-private-browsing.html
r163823 r249833 2 2 <head> 3 3 <script> 4 function log(msg) 5 { 6 let c = document.getElementById("console"); 7 c.innerHTML = c.innerHTML + msg + "<br>"; 8 } 9 4 10 function updateAppCache(callback) { 5 11 appCacheCallback = callback; … … 8 14 9 15 window.applicationCache.onnoupdate = function(e) { 10 console.log("Application cache loaded");16 log("Application cache loaded"); 11 17 if (window.appCacheCallback) { 12 18 appCacheCallback(true); … … 15 21 16 22 window.applicationCache.oncached = function(e) { 17 console.log("Application cache loaded");23 log("Application cache loaded"); 18 24 if (window.appCacheCallback) { 19 25 appCacheCallback(true); … … 22 28 23 29 window.applicationCache.onupdateready = function(e) { 24 console.log("Application cache loaded");30 log("Application cache loaded"); 25 31 if (window.appCacheCallback) { 26 32 appCacheCallback(true); … … 29 35 30 36 window.applicationCache.onerror = function(e) { 31 console.log("Application cache not loaded");37 log("Application cache not loaded"); 32 38 if (window.appCacheCallback) { 33 39 appCacheCallback(false); … … 37 43 </head> 38 44 <body> 45 <div id="console"></div> 39 46 <img src="abe.png"> 40 47 </body> -
trunk/LayoutTests/platform/wk2/TestExpectations
r249817 r249833 91 91 # https://bugs.webkit.org/show_bug.cgi?id=115274 92 92 # testRunner.setPrivateBrowsingEnabled_DEPRECATED() doesn't work with NetworkProcess and is WebKitLegacy only. 93 http/tests/security/appcache-in-private-browsing.html [ Skip ]94 93 http/tests/security/appcache-switching-private-browsing.html [ Skip ] 95 94 http/tests/security/cookies/first-party-cookie-allow-xslt.xml [ Skip ]
Note:
See TracChangeset
for help on using the changeset viewer.