[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
hans at chromium.org
hans at chromium.org
Wed Dec 22 16:34:55 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit 87a421be1f13096e2f752444d67c5312682eef7b
Author: hans at chromium.org <hans at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Fri Nov 26 14:59:29 2010 +0000
2010-11-26 Hans Wennborg <hans at chromium.org>
Reviewed by Jeremy Orlow.
IndexedDB: Test inserting invalid values in object store
https://bugs.webkit.org/show_bug.cgi?id=50110
Add tests to make sure we throw exceptions when a user tries
to insert invalid data in the object store.
* storage/indexeddb/objectstore-basics-expected.txt:
* storage/indexeddb/objectstore-basics.html:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 358dad6..9653c97 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,16 @@
+2010-11-26 Hans Wennborg <hans at chromium.org>
+
+ Reviewed by Jeremy Orlow.
+
+ IndexedDB: Test inserting invalid values in object store
+ https://bugs.webkit.org/show_bug.cgi?id=50110
+
+ Add tests to make sure we throw exceptions when a user tries
+ to insert invalid data in the object store.
+
+ * storage/indexeddb/objectstore-basics-expected.txt:
+ * storage/indexeddb/objectstore-basics.html:
+
2010-11-26 Helder Correia <helder at sencha.com>
Reviewed by Ariya Hidayat.
diff --git a/LayoutTests/storage/indexeddb/objectstore-basics-expected.txt b/LayoutTests/storage/indexeddb/objectstore-basics-expected.txt
index 02ca924..a44e20e 100644
--- a/LayoutTests/storage/indexeddb/objectstore-basics-expected.txt
+++ b/LayoutTests/storage/indexeddb/objectstore-basics-expected.txt
@@ -101,6 +101,10 @@ Try to insert data with a Date key:
store.add({x: 'foo'}, new Date())
PASS Exception thrown
PASS code is DOMException.TYPE_MISMATCH_ERR
+Try to insert a value not handled by structured clone:
+store.add({x: 'bar', y: document.getElementById('console')}, 'bar')
+PASS Exception thrown
+PASS code is DOMException.NOT_SUPPORTED_ERR
Try to insert data where key path yields a Date key:
store.add({x: new Date()}, 'foo')
PASS Adding data where key path yielded Date key resulted in error.
diff --git a/LayoutTests/storage/indexeddb/objectstore-basics.html b/LayoutTests/storage/indexeddb/objectstore-basics.html
index f3e1ea9..f262add 100644
--- a/LayoutTests/storage/indexeddb/objectstore-basics.html
+++ b/LayoutTests/storage/indexeddb/objectstore-basics.html
@@ -155,6 +155,17 @@ function addData()
shouldBe("code", "DOMException.TYPE_MISMATCH_ERR");
}
+ debug("Try to insert a value not handled by structured clone:");
+ try {
+ debug("store.add({x: 'bar', y: document.getElementById('console')}, 'bar')");
+ store.add({x: 'bar', y: document.getElementById('console')}, 'bar');
+ testFailed("Passing a DOM node as value should have thrown.");
+ } catch (err) {
+ testPassed("Exception thrown");
+ code = err.code;
+ shouldBe("code", "DOMException.NOT_SUPPORTED_ERR");
+ }
+
// FIXME: This should work in the future.
debug("Try to insert data where key path yields a Date key:");
result = evalAndLog("store.add({x: new Date()}, 'foo')");
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list