blob: b9d946cabec6c888deb50816fafb208d4b7a824a [file] [log] [blame]
Test IndexedDB: result property after deleting existing and non-existing record
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
indexedDB.deleteDatabase(dbname)
indexedDB.open(dbname)
objectStore = db.createObjectStore('foo', { keyPath: 'id', autoIncrement: true });
request = objectStore.add({});
id = event.target.result;
request = objectStore.delete(id);
PASS event.target.result is undefined
request = objectStore.delete(id);
PASS event.target.result is undefined
PASS successfullyParsed is true
TEST COMPLETE