Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: LayoutTests/storage/indexeddb/resources/exceptions.js

Issue 1149873008: IndexedDB: IDL and tests for IDBObjectStore.getAllKeys(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@idb-objectstore-getallkeys
Patch Set: Second patch update. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/storage/indexeddb/resources/exceptions.js
diff --git a/LayoutTests/storage/indexeddb/resources/exceptions.js b/LayoutTests/storage/indexeddb/resources/exceptions.js
index fae002ad663a27f8bf003e7ab0a09cb8805cb2e6..30d8c109e6bd2eca3f8a5d47aa431fd09935831a 100644
--- a/LayoutTests/storage/indexeddb/resources/exceptions.js
+++ b/LayoutTests/storage/indexeddb/resources/exceptions.js
@@ -191,6 +191,14 @@ function testObjectStore()
// "Occurs if a request is made on a source object that has been deleted or removed." - covered in deleted-objects.html
debug("");
+ debug("IDBObjectStore.getAllKeys()");
+ debug("If the key parameter is not a valid key or a key range, this method throws a DOMException of type DataError.");
+ evalAndExpectException("store.getAllKeys({})", "0", "'DataError'");
+ debug("The transaction this IDBObjectStore belongs to is not active.");
+ evalAndExpectException("storeFromInactiveTransaction.getAllKeys(0)", "0", "'TransactionInactiveError'");
+ // "Occurs if a request is made on a source object that has been deleted or removed." - covered in deleted-objects.html
+ //
+ debug("");
debug("IDBObjectStore.index()");
debug("There is no index with the given name, compared in a case-sensitive manner, in the connected database.");
evalAndExpectException("store.index('no-such-index')", "DOMException.NOT_FOUND_ERR", "'NotFoundError'");

Powered by Google App Engine
This is Rietveld 408576698