4 <p>This test case is used to test the function of clear local storage by clicking "Clear Local Storage" button
5 from Settings -> Privacy & Security. This is for <a href="https://bugs.webkit.org/show_bug.cgi?id=83253">https://bugs.webkit.org/show_bug.cgi?id=83253</a></p>
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");
14 // notify to clear the local storage and refresh the page.
15 document.write("<p>Please clear the local storage from Settings -> Privacy & Security by pressing \"Clear Local Storage\" button, then reload this page to see the result.</p>");
17 document.write("Result: ");
18 if (!localStorage.getItem("key")) {
20 document.write("<span style='color:green'>PASS</span>");
23 document.write("<span style='color:red'>FAIL</span>");
25 document.write("<p>If you want to run this test case again, please restart the browser.</p>");