Index: LayoutTests/storage/indexeddb/transaction-and-objectstore-calls-expected.txt |
diff --git a/LayoutTests/storage/indexeddb/transaction-and-objectstore-calls-expected.txt b/LayoutTests/storage/indexeddb/transaction-and-objectstore-calls-expected.txt |
index 8d66dfbd1e8c5fab851aae71fa1206c62c6ea832..583cee02e89094f331ea2c5953bddfa9e03f8f7c 100644 |
--- a/LayoutTests/storage/indexeddb/transaction-and-objectstore-calls-expected.txt |
+++ b/LayoutTests/storage/indexeddb/transaction-and-objectstore-calls-expected.txt |
@@ -18,10 +18,12 @@ Expecting exception from trans.objectStore('b') |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: The specified object store was not found. |
Expecting exception from trans.objectStore('x') |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: The specified object store was not found. |
trans = db.transaction(['a']) |
trans.objectStore('a') |
@@ -29,10 +31,12 @@ Expecting exception from trans.objectStore('b') |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: The specified object store was not found. |
Expecting exception from trans.objectStore('x') |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: The specified object store was not found. |
trans = db.transaction(['b']) |
trans.objectStore('b') |
@@ -40,10 +44,12 @@ Expecting exception from trans.objectStore('a') |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: The specified object store was not found. |
Expecting exception from trans.objectStore('x') |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: The specified object store was not found. |
trans = db.transaction(['a', 'b']) |
trans.objectStore('a') |
@@ -52,6 +58,7 @@ Expecting exception from trans.objectStore('x') |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: The specified object store was not found. |
trans = db.transaction(['b', 'a']) |
trans.objectStore('a') |
@@ -60,6 +67,7 @@ Expecting exception from trans.objectStore('x') |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: The specified object store was not found. |
Passing a string as the first argument is a shortcut for just one object store: |
trans = db.transaction('a') |
@@ -68,10 +76,12 @@ Expecting exception from trans.objectStore('b') |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: The specified object store was not found. |
Expecting exception from trans.objectStore('x') |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: The specified object store was not found. |
PASS trans = db.transaction() threw exception TypeError: Not enough arguments. |
@@ -79,37 +89,45 @@ Expecting exception from db.transaction(['x']) |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: One of the specified object stores was not found. |
Expecting exception from db.transaction(['x']) |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: One of the specified object stores was not found. |
Expecting exception from db.transaction(['a', 'x']) |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: One of the specified object stores was not found. |
Expecting exception from db.transaction(['x', 'x']) |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: One of the specified object stores was not found. |
Expecting exception from db.transaction(['a', 'x', 'b']) |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: One of the specified object stores was not found. |
Exception thrown when no stores specified: |
Expecting exception from db.transaction([]) |
PASS Exception was thrown. |
PASS code is DOMException.INVALID_ACCESS_ERR |
+Exception message: The storeNames parameter was empty. |
{} coerces to a string - so no match, but not a type error: |
Expecting exception from db.transaction({}) |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: One of the specified object stores was not found. |
Expecting exception from db.transaction({mode:0}) |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: One of the specified object stores was not found. |
Overriding the default string coercion makes these work: |
db.transaction({toString:function(){return 'a';}}) |
@@ -119,10 +137,12 @@ Expecting exception from db.transaction([{toString:function(){return 'x';}}]) |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: One of the specified object stores was not found. |
Expecting exception from db.transaction([{toString:function(){return 'x';}}]) |
PASS Exception was thrown. |
PASS code is DOMException.NOT_FOUND_ERR |
PASS ename is 'NotFoundError' |
+Exception message: One of the specified object stores was not found. |
trans = db.transaction(['store']) |
PASS trans is non-null. |
@@ -136,10 +156,12 @@ Expecting exception from trans.objectStore('store') |
PASS Exception was thrown. |
PASS code is DOMException.INVALID_STATE_ERR |
PASS ename is 'InvalidStateError' |
+Exception message: The transaction has finished. |
Expecting exception from store.index('index') |
PASS Exception was thrown. |
PASS code is DOMException.INVALID_STATE_ERR |
PASS ename is 'InvalidStateError' |
+Exception message: The transaction has finished. |
PASS successfullyParsed is true |
TEST COMPLETE |