2010-05-14 Hans Wennborg <hans@chromium.org>
authorjorlow@chromium.org <jorlow@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 May 2010 09:23:42 +0000 (09:23 +0000)
committerjorlow@chromium.org <jorlow@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 May 2010 09:23:42 +0000 (09:23 +0000)
        Reviewed by Jeremy Orlow.

        [Chromium] Rebaseline storage/domstorage/quota.html
        https://bugs.webkit.org/show_bug.cgi?id=38996

        Chromium enforces quota on session storage and thus expects to "fail"
        the first part of this test.

        * platform/chromium-mac/storage/domstorage/quota-expected.txt: Added.
        * platform/chromium-win/storage/domstorage/quota-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@59457 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/platform/chromium-mac/storage/domstorage/quota-expected.txt [new file with mode: 0644]
LayoutTests/platform/chromium-win/storage/domstorage/quota-expected.txt [new file with mode: 0644]

index fb6a41e..2caaace 100644 (file)
@@ -1,3 +1,16 @@
+2010-05-14  Hans Wennborg  <hans@chromium.org>
+
+        Reviewed by Jeremy Orlow.
+
+        [Chromium] Rebaseline storage/domstorage/quota.html
+        https://bugs.webkit.org/show_bug.cgi?id=38996
+
+        Chromium enforces quota on session storage and thus expects to "fail"
+        the first part of this test.
+
+        * platform/chromium-mac/storage/domstorage/quota-expected.txt: Added.
+        * platform/chromium-win/storage/domstorage/quota-expected.txt: Added.
+
 2010-05-14  Yury Semikhatsky  <yurys@chromium.org>
 
         Unreviewed. Chromium: update test expectations.
diff --git a/LayoutTests/platform/chromium-mac/storage/domstorage/quota-expected.txt b/LayoutTests/platform/chromium-mac/storage/domstorage/quota-expected.txt
new file mode 100644 (file)
index 0000000..4fd4c71
--- /dev/null
@@ -0,0 +1,32 @@
+Test the DOM Storage quota code.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Testing sessionStorage
+storage.clear()
+PASS storage.length is 0
+Creating 'data' which contains 64K of data
+PASS data.length is 65536
+Putting 'data' into 39 sessionStorage buckets.
+Putting 'data' into another bucket.h
+FAIL Exception: Error: QUOTA_EXCEEDED_ERR: DOM Exception 22
+
+
+Testing localStorage
+storage.clear()
+PASS storage.length is 0
+Creating 'data' which contains 64K of data
+PASS data.length is 65536
+Putting 'data' into 39 localStorage buckets.
+Putting 'data' into another bucket.h
+PASS Hit exception as expected
+Verify that data was never inserted.
+PASS storage.getItem(39) is null
+Removing bucket 38.
+Adding 'Hello!' into a new bucket.
+PASS Insertion worked.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/chromium-win/storage/domstorage/quota-expected.txt b/LayoutTests/platform/chromium-win/storage/domstorage/quota-expected.txt
new file mode 100644 (file)
index 0000000..3dcc432
--- /dev/null
@@ -0,0 +1,32 @@
+Test the DOM Storage quota code.\r
+\r
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".\r
+\r
+\r
+Testing sessionStorage\r
+storage.clear()\r
+PASS storage.length is 0\r
+Creating 'data' which contains 64K of data\r
+PASS data.length is 65536\r
+Putting 'data' into 39 sessionStorage buckets.\r
+Putting 'data' into another bucket.h\r
+FAIL Exception: Error: QUOTA_EXCEEDED_ERR: DOM Exception 22\r
+\r
+\r
+Testing localStorage\r
+storage.clear()\r
+PASS storage.length is 0\r
+Creating 'data' which contains 64K of data\r
+PASS data.length is 65536\r
+Putting 'data' into 39 localStorage buckets.\r
+Putting 'data' into another bucket.h\r
+PASS Hit exception as expected\r
+Verify that data was never inserted.\r
+PASS storage.getItem(39) is null\r
+Removing bucket 38.\r
+Adding 'Hello!' into a new bucket.\r
+PASS Insertion worked.\r
+PASS successfullyParsed is true\r
+\r
+TEST COMPLETE\r
+\r