blob: 0d91a9c0a5b1fabbedd46007ba43f818ec1cf839 [file] [log] [blame]
Test IndexedDB's behavior deleting entry with no key
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
dbname = "key-requirements-delete-null-key.html"
indexedDB.deleteDatabase(dbname)
indexedDB.open(dbname)
objectStore = db.createObjectStore('bar');
Expecting exception from objectStore.delete(null);
PASS Exception was thrown.
PASS code is 0
PASS ename is 'DataError'
Exception message: Failed to execute 'delete' on 'IDBObjectStore': No key or key range specified.
PASS successfullyParsed is true
TEST COMPLETE