This page tests localStorage and sessionStorage.
To test the storage event, open the second test page in another frame or window and change a value in this page. The event should fire in the other page.
Set the name and value for your storage test:
localStorage.setItem($('name').value,$('value').value);
sessionStorage.setItem($('name').value,$('value').value);
note(localStorage.getItem($('name').value));
note(sessionStorage.getItem($('name').value));
This test throws an error when there are no keys.
note(localStorage.key(0));
note(sessionStorage.key(0));
localStorage.removeItem($('name').value);
sessionStorage.removeItem($('name').value);
localStorage.clear();
sessionStorage.clear();
note(localStorage.length);
note(sessionStorage.length);