[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.15.1-1414-gc69ee75

jorlow at chromium.org jorlow at chromium.org
Thu Oct 29 20:39:50 UTC 2009


The following commit has been merged in the webkit-1.1 branch:
commit 1499fb7495d836941bcf4f2c275cad3dfc701524
Author: jorlow at chromium.org <jorlow at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Oct 6 07:01:12 2009 +0000

    2009-10-05  Jeremy Orlow  <jorlow at chromium.org>
    
            Reviewed by Darin Fisher.
    
            Add a test to verify session storage does not have a quota
            https://bugs.webkit.org/show_bug.cgi?id=30093
    
            * storage/domstorage/script-tests/no-quota.js: Added.
            (runTest):
            * storage/domstorage/sessionstorage/no-quota-expected.txt: Added.
            * storage/domstorage/sessionstorage/no-quota.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49156 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 857b0e8..72401a3 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -2,6 +2,18 @@
 
         Reviewed by Darin Fisher.
 
+        Add a test to verify session storage does not have a quota
+        https://bugs.webkit.org/show_bug.cgi?id=30093
+
+        * storage/domstorage/script-tests/no-quota.js: Added.
+        (runTest):
+        * storage/domstorage/sessionstorage/no-quota-expected.txt: Added.
+        * storage/domstorage/sessionstorage/no-quota.html: Added.
+
+2009-10-05  Jeremy Orlow  <jorlow at chromium.org>
+
+        Reviewed by Darin Fisher.
+
         Convert DOM Storage's "complex-values" test into the new format.
         https://bugs.webkit.org/show_bug.cgi?id=30097
 
diff --git a/LayoutTests/storage/domstorage/script-tests/no-quota.js b/LayoutTests/storage/domstorage/script-tests/no-quota.js
new file mode 100644
index 0000000..23d6c23
--- /dev/null
+++ b/LayoutTests/storage/domstorage/script-tests/no-quota.js
@@ -0,0 +1,35 @@
+description("Test whether we can add >5mb (the default quota) of data to DOM Storage");
+
+function runTest(storageString)
+{
+    storage = eval(storageString);
+    if (!storage) {
+        testFailed(storageString + " DOES NOT exist");
+        return;
+    }
+
+    debug("Testing " + storageString);
+
+    evalAndLog("storage.clear()");
+    shouldBe("storage.length", "0");
+
+    debug("Creating 'data' which contains 64K of data");
+    data = "X";
+    for (var i=0; i<16; i++)
+        data += data;
+    shouldBe("data.length", "65536");
+
+    debug("Putting 'data' into 40 " + storageString + " buckets.");
+    for (var i=0; i<40; i++)
+        storage[i] = data;
+
+    debug("Putting 'data' into another bucket.h");
+    try {
+        storage[40] = data;
+        testPassed("Insertion worked.");
+    } catch (e) {
+        testFailed("Exception: " + e);
+    }
+
+    window.successfullyParsed = true;
+}
diff --git a/LayoutTests/storage/domstorage/sessionstorage/no-quota-expected.txt b/LayoutTests/storage/domstorage/sessionstorage/no-quota-expected.txt
new file mode 100644
index 0000000..d5eacb4
--- /dev/null
+++ b/LayoutTests/storage/domstorage/sessionstorage/no-quota-expected.txt
@@ -0,0 +1,17 @@
+Test whether we can add >5mb (the default quota) of data to DOM Storage
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Testing window.sessionStorage
+storage.clear()
+PASS storage.length is 0
+Creating 'data' which contains 64K of data
+PASS data.length is 65536
+Putting 'data' into 40 window.sessionStorage buckets.
+Putting 'data' into another bucket.h
+PASS Insertion worked.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/storage/domstorage/sessionstorage/no-quota.html b/LayoutTests/storage/domstorage/sessionstorage/no-quota.html
new file mode 100644
index 0000000..7065584
--- /dev/null
+++ b/LayoutTests/storage/domstorage/sessionstorage/no-quota.html
@@ -0,0 +1,15 @@
+<html>
+<head>
+<link rel="stylesheet" href="../../../fast/js/resources/js-test-style.css">
+<script src="../../../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script src="../script-tests/no-quota.js"></script>
+<script>
+runTest("window.sessionStorage");
+</script>
+<script src="../../../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list