<!DOCTYPE html> | |
<html> | |
<body> | |
<div id="console"></div> | |
<script> | |
localStorage.clear(); | |
localStorage.foo = "Visible"; | |
sessionStorage.clear(); | |
sessionStorage.foo = "Visible"; | |
if (window.testRunner) { | |
testRunner.dumpAsText(); | |
testRunner.evaluateScriptInIsolatedWorld( | |
0, | |
"document.getElementById('console').innerHTML = localStorage.foo + ' and ' + sessionStorage.foo"); | |
} | |
</script> | |
</body> | |
</html> |