Revision 3a8328470d53c4501e31cec2775c4d33821c2275 authored by Robert Ma on 20 March 2018, 18:52:04 UTC, committed by Robert Ma on 20 March 2018, 20:32:14 UTC
* Renaming `check_stability.run` breaks commands.json and naming conventions, so rename the other `run` in that module instead. * Only return errors for empty results when we know for sure tests are affected.
1 parent 7e214e8
storage_local_setitem_quotaexceedederr.html
<!DOCTYPE HTML>
<html>
<head>
<title>WebStorage Test: localStorage - setItem throws QuotaExceededError</title>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<h1>storage_local_setItem_QUOTA_EXCEEDED_ERR</h1>
<div id="log"></div>
<script>
test(function() {
localStorage.clear();
var index = 0;
var key = "name";
var val = "x".repeat(1024);
assert_throws("QUOTA_EXCEEDED_ERR", function() {
while (true) {
index++;
localStorage.setItem("" + key + index, "" + val + index);
}
});
localStorage.clear();
}, "Throws QuotaExceededError when the quota has been exceeded");
</script>
</body>
</html>
Computing file changes ...