| 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 4b547f548390adc1cee5e3f5cfc0ec4a6e3a06a0..9462236438af2ba324990d7aaa7eef7a06b9d3ec 100644
|
| --- a/LayoutTests/storage/indexeddb/transaction-and-objectstore-calls-expected.txt
|
| +++ b/LayoutTests/storage/indexeddb/transaction-and-objectstore-calls-expected.txt
|
| @@ -18,12 +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.
|
| +Exception message: Failed to execute 'objectStore' on 'IDBTransaction': 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.
|
| +Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The specified object store was not found.
|
|
|
| trans = db.transaction(['a'])
|
| trans.objectStore('a')
|
| @@ -31,12 +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.
|
| +Exception message: Failed to execute 'objectStore' on 'IDBTransaction': 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.
|
| +Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The specified object store was not found.
|
|
|
| trans = db.transaction(['b'])
|
| trans.objectStore('b')
|
| @@ -44,12 +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.
|
| +Exception message: Failed to execute 'objectStore' on 'IDBTransaction': 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.
|
| +Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The specified object store was not found.
|
|
|
| trans = db.transaction(['a', 'b'])
|
| trans.objectStore('a')
|
| @@ -58,7 +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.
|
| +Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The specified object store was not found.
|
|
|
| trans = db.transaction(['b', 'a'])
|
| trans.objectStore('a')
|
| @@ -67,7 +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.
|
| +Exception message: Failed to execute 'objectStore' on 'IDBTransaction': 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')
|
| @@ -76,12 +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.
|
| +Exception message: Failed to execute 'objectStore' on 'IDBTransaction': 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.
|
| +Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The specified object store was not found.
|
|
|
| PASS trans = db.transaction() threw exception TypeError: Failed to execute 'transaction' on 'IDBDatabase': 1 argument required, but only 0 present..
|
|
|
| @@ -89,45 +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.
|
| +Exception message: Failed to execute 'transaction' on 'IDBDatabase': 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.
|
| +Exception message: Failed to execute 'transaction' on 'IDBDatabase': 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.
|
| +Exception message: Failed to execute 'transaction' on 'IDBDatabase': 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.
|
| +Exception message: Failed to execute 'transaction' on 'IDBDatabase': 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 message: Failed to execute 'transaction' on 'IDBDatabase': 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.
|
| +Exception message: Failed to execute 'transaction' on 'IDBDatabase': 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.
|
| +Exception message: Failed to execute 'transaction' on 'IDBDatabase': 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.
|
| +Exception message: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.
|
|
|
| Overriding the default string coercion makes these work:
|
| db.transaction({toString:function(){return 'a';}})
|
| @@ -137,12 +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.
|
| +Exception message: Failed to execute 'transaction' on 'IDBDatabase': 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.
|
| +Exception message: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.
|
|
|
| trans = db.transaction(['store'])
|
| PASS trans is non-null.
|
| @@ -156,12 +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.
|
| +Exception message: Failed to execute 'objectStore' on 'IDBTransaction': 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.
|
| +Exception message: Failed to execute 'index' on 'IDBObjectStore': The transaction has finished.
|
| PASS successfullyParsed is true
|
|
|
| TEST COMPLETE
|
|
|