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

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

Issue 1157173002: IndexedDB: IDL and tests for IDBIndex.getAllKeys. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@idb-index-getallkeys
Patch Set: Rewound stable/virtual expected and made getAllKeys experimental 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 31ad5164deb03b09d07e8e402f690d659f9d0e1f..fae002ad663a27f8bf003e7ab0a09cb8805cb2e6 100644
--- a/LayoutTests/storage/indexeddb/resources/exceptions.js
+++ b/LayoutTests/storage/indexeddb/resources/exceptions.js
@@ -326,6 +326,14 @@ function testIndex()
// "Occurs if a request is made on a source object that has been deleted or removed." - covered in deleted-objects.html
debug("");
+ debug("IDBIndex.getAllKeys()");
+ debug("If the key parameter is not a valid key or a key range, this method throws a DOMException of type DataError.");
+ evalAndExpectException("index.getAllKeys({})", "0", "'DataError'");
+ debug("The transaction this IDBIndex belongs to is not active.");
+ evalAndExpectException("indexFromInactiveTransaction.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("IDBIndex.openCursor()");
debug("If the range parameter is specified but is not a valid key or a key range, this method throws a DOMException of type DataError.");
evalAndExpectException("index.openCursor({})", "0", "'DataError'");

Powered by Google App Engine
This is Rietveld 408576698