storage_local-manual.html (1246B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>WebStorage Test: local storage</title> 4 <link rel="author" title="Intel" href="http://www.intel.com"> 5 <meta name="flags" content="interact"> 6 7 <h2>Description</h2> 8 <p> 9 This test validates that store data using Local Storage which means that close the page, and re-open it, the data saved before should be loaded again. 10 </p> 11 12 <h2>Preconditions</h2> 13 <ol class="instructions"> 14 <li> 15 Click the "Clear" button, refresh the page once and then check if the page shows "You have viewed this page 1 time(s)" 16 </li> 17 <li> 18 Close the page, re-open it and then check if the page still shows "You have viewed this page 2 time(s)" 19 </li> 20 <li> 21 If the above two steps are all true the test case pass, otherwise it fail 22 </li> 23 </ol> 24 25 <p> 26 <h2>You have viewed this page 27 <span id="count">an untold number of</span> 28 time(s).</h2> 29 <button type="button" onclick="javascript:localStorage.pageLoadCount = 0;"><h3>Clear</h3></button> 30 </p> 31 32 <script> 33 34 if (!localStorage.pageLoadCount) { 35 localStorage.pageLoadCount = 0; 36 } 37 localStorage.pageLoadCount = parseInt(localStorage.pageLoadCount) + 1; 38 document.getElementById('count').textContent = localStorage.pageLoadCount; 39 40 </script>