| Index: LayoutTests/imported/web-platform-tests/webstorage/storage_session_setitem_quotaexceedederr.html
|
| diff --git a/LayoutTests/imported/web-platform-tests/webstorage/storage_session_setitem_quotaexceedederr.html b/LayoutTests/imported/web-platform-tests/webstorage/storage_session_setitem_quotaexceedederr.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c179a7657eaa0807a9c058b0bd2a42284a7772a6
|
| --- /dev/null
|
| +++ b/LayoutTests/imported/web-platform-tests/webstorage/storage_session_setitem_quotaexceedederr.html
|
| @@ -0,0 +1,31 @@
|
| +<!DOCTYPE HTML>
|
| +<html>
|
| + <head>
|
| + <title>WebStorage Test: sessionStorage - 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_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, "" + index);
|
| + }
|
| + });
|
| +
|
| + sessionStorage.clear();
|
| + }, "Throws QuotaExceededError when the quota has been exceeded");
|
| + </script>
|
| + </body>
|
| +</html>
|
|
|