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

32 lines (28 sloc) 0.787 kb
<!DOCTYPE HTML>
<html>
<head>
<title>Web Storage</title>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<h1>storage_session_setItem_QUOTA_EXCEEDED_ERR</h1>
<div id="log"></div>
<script>
test(function() {
sessionStorage.clear();
var index = 0;
var key = "name";
var val = "user";
assert_throws("QUOTA_EXCEEDED_ERR", function() {
while (true) {
index++;
sessionStorage.setItem("" + key + index, "" + name + index);
}
});
sessionStorage.clear();
});
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.