blob: 130d61e5245d26584464e1be66ee4fe76dbd3a1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!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_setItem</h1>
<div id="log"></div>
<script>
test(function() {
sessionStorage.clear();
sessionStorage.setItem("name", "user1");
assert_equals(sessionStorage.length, 1, "localStorage.setItem")
});
</script>
</body>
</html>
|