blob: d039773b5bf4efa4879577107dda986a75971821 [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<title>WebStorage Test: local storage</title>
<link rel="author" title="Intel" href="">
<meta name="flags" content="interact">
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.
<ol class="instructions">
Click the "Clear" button, refresh the page once and then check if the page shows "You have viewed this page 1 time(s)"
Close the page, re-open it and then check if the page still shows "You have viewed this page 2 time(s)"
If the above two steps are all true the test case pass, otherwise it fail
<h2>You have viewed this page
<span id="count">an untold number of</span>
<button type="button" onclick="javascript:localStorage.pageLoadCount = 0;"><h3>Clear</h3></button>
if (!localStorage.pageLoadCount) {
localStorage.pageLoadCount = 0;
localStorage.pageLoadCount = parseInt(localStorage.pageLoadCount) + 1;
document.getElementById('count').textContent = localStorage.pageLoadCount;