chromium/third_party/blink/web_tests/storage/indexeddb/mozilla/readwrite-transactions-expected.txt

Test IndexedDB's read/write transactions

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

dbname = "readwrite-transactions.html"
indexedDB.deleteDatabase(dbname)
indexedDB.open(dbname)
objectStore = db.createObjectStore(osName, { autoIncrement: true });
request = db.transaction([osName], 'readwrite').objectStore(osName).add({});
PASS event.target.transaction.mode is 'readwrite'
key1 = event.target.result;
request = db.transaction(osName, 'readwrite').objectStore(osName).add({});
PASS event.target.transaction.mode is 'readwrite'
key2 = event.target.result;
request = db.transaction([osName], 'readwrite').objectStore(osName).put({}, key1);
PASS event.target.transaction.mode is 'readwrite'
request = db.transaction(osName, 'readwrite').objectStore(osName).put({}, key2);
PASS event.target.transaction.mode is 'readwrite'
request = db.transaction([osName], 'readwrite').objectStore(osName).put({}, key1);
PASS event.target.transaction.mode is 'readwrite'
request = db.transaction(osName, 'readwrite').objectStore(osName).put({}, key1);
PASS event.target.transaction.mode is 'readwrite'
request = db.transaction([osName], 'readwrite').objectStore(osName).delete(key1);
PASS event.target.transaction.mode is 'readwrite'
request = db.transaction(osName, 'readwrite').objectStore(osName).delete(key2);
PASS event.target.transaction.mode is 'readwrite'
PASS successfullyParsed is true

TEST COMPLETE