Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (21 sloc) 0.61 kb
<!DOCTYPE HTML>
<html>
<head>
<title>Web Storage</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<h1>storage_session_length</h1>
<div id="log"></div>
<script>
test(function() {
sessionStorage.clear();
assert_equals(sessionStorage.length, 0, "sessionStorage.length")
sessionStorage["name"] = "user1";
sessionStorage["age"] = "20";
assert_equals(sessionStorage.length, 2, "sessionStorage.length")
});
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.