Revision 149c83d77d05dafea4a5a4dadf6670bfadc8e360 authored by moz-wptsync-bot on 16 March 2018, 13:38:52 UTC, committed by moz-wptsync-bot on 16 March 2018, 13:38:52 UTC
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1445883
gecko-commit: 0f81334efa0a008db8931a41eef2d26a77d0e800
gecko-integration-branch: mozilla-inbound
gecko-reviewers: smaug
1 parent 1cbb928
Raw File
storage_local-manual.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>WebStorage Test: local storage</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="flags" content="interact">

<h2>Description</h2>
<p>
  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.
</p>

<h2>Preconditions</h2>
<ol class="instructions">
  <li>
    Click the "Clear" button, refresh the page once and then check if the page shows "You have viewed this page 1 time(s)"
  </li>
  <li>
    Close the page, re-open it and then check if the page still shows "You have viewed this page 2 time(s)"
  </li>
  <li>
    If the above two steps are all true the test case pass, otherwise it fail
  </li>
</ol>

<p>
  <h2>You have viewed this page
  <span id="count">an untold number of</span>
  time(s).</h2>
  <button type="button" onclick="javascript:localStorage.pageLoadCount = 0;"><h3>Clear</h3></button>
</p>

<script>

    if (!localStorage.pageLoadCount) {
        localStorage.pageLoadCount = 0;
    }
    localStorage.pageLoadCount = parseInt(localStorage.pageLoadCount) + 1;
    document.getElementById('count').textContent = localStorage.pageLoadCount;

</script>
back to top