blob: d6a0cb5fe9a9a4876c38b747ec9ec930a494a2e4 [file] [log] [blame]
Test IndexedDB's behavior puting without key
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
dbname = "key-requirements-put-no-key.html"
indexedDB.deleteDatabase(dbname)
indexedDB.open(dbname)
objectStore = db.createObjectStore('bar');
Expecting exception from objectStore.put({});
PASS Exception was thrown.
PASS code is 0
PASS ename is 'DataError'
Exception message: Failed to execute 'put' on 'IDBObjectStore': The object store uses out-of-line keys and has no key generator and the key parameter was not provided.
PASS successfullyParsed is true
TEST COMPLETE