1 Tests IndexedDB's quota enforcing mechanism. 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6 webkitIndexedDB.open('database-quota') 7 db = event.target.result 8 db.setVersion('new version') 9 setVersionSuccess(): 10 trans = event.target.result 11 PASS trans !== null is true 12 Deleted all object stores. 13 PASS db.version is "new version" 14 PASS db.name is "database-quota" 15 PASS db.objectStoreNames is [] 16 PASS db.objectStoreNames.length is 0 17 PASS db.objectStoreNames.contains('') is false 18 db.createObjectStore("test123") 19 PASS db.objectStoreNames is ['test123'] 20 PASS db.objectStoreNames.length is 1 21 PASS db.objectStoreNames.contains('') is false 22 PASS db.objectStoreNames.contains('test456') is false 23 PASS db.objectStoreNames.contains('test123') is true 24 trans = db.transaction([], webkitIDBTransaction.READ_WRITE) 25 Creating 'data' which contains 64K of data 26 PASS data.length is 65536 27 store = trans.objectStore('test123') 28 Error function called: (undefined) undefined 29 event.preventDefault() 30 PASS Adding data failed due to quota error. Data added was about 5 MB 31 PASS successfullyParsed is true 32 33 TEST COMPLETE 34 35