browser/components/sessionstore/test/browser_339445_sample.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/components/sessionstore/test/browser_339445_sample.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
     1.5 +<meta charset="utf-8">
     1.6 +<title>Test for bug 339445</title>
     1.7 +
     1.8 +storageTestItem = <span id="storageTestItem">FAIL</span>
     1.9 +
    1.10 +<!--
    1.11 +  storageTestItem's textContent will be one of the following:
    1.12 +  * FAIL    : sessionStorage wasn't available
    1.13 +  * PENDING : the test value has been initialized on first load
    1.14 +  * SUCCESS : the test value was correctly retrieved
    1.15 +-->
    1.16 +
    1.17 +<script type="application/javascript">
    1.18 +  document.getElementById("storageTestItem").textContent =
    1.19 +    sessionStorage["storageTestItem"] || "PENDING";
    1.20 +  sessionStorage["storageTestItem"] = "SUCCESS";
    1.21 +</script>

mercurial