| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <body> | |
| 4 <p>This test case is used to test the function of clear local storage by cli
cking "Clear Local Storage" button | |
| 5 from Settings -> Privacy & Security. This is for <a href="https://bugs.webki
t.org/show_bug.cgi?id=83253">https://bugs.webkit.org/show_bug.cgi?id=83253</a></
p> | |
| 6 <div> | |
| 7 <script type="text/javascript"> | |
| 8 if (!sessionStorage.getItem("key")) { | |
| 9 // initialize test case | |
| 10 document.write("Status: <span style='color:yellow'>Initial</span>"); | |
| 11 sessionStorage.setItem("key", "value"); | |
| 12 localStorage.setItem("key", "value"); | |
| 13 | |
| 14 // notify to clear the local storage and refresh the page. | |
| 15 document.write("<p>Please clear the local storage from Settings -> Priva
cy & Security by pressing \"Clear Local Storage\" button, then reload this page
to see the result.</p>"); | |
| 16 } else { | |
| 17 document.write("Result: "); | |
| 18 if (!localStorage.getItem("key")) { | |
| 19 // success | |
| 20 document.write("<span style='color:green'>PASS</span>"); | |
| 21 } else { | |
| 22 // fail | |
| 23 document.write("<span style='color:red'>FAIL</span>"); | |
| 24 } | |
| 25 document.write("<p>If you want to run this test case again, please resta
rt the browser.</p>"); | |
| 26 } | |
| 27 </script> | |
| 28 </div> | |
| 29 </body> | |
| 30 </html> | |
| OLD | NEW |