-Test IndexedDB's IDBObjectStore.removeObjectStore().
+Test IndexedDB's webkitIDBObjectStore.deleteObjectStore().
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-indexedDB.open('name', 'description')
+webkitIndexedDB.open('name')
PASS 'onsuccess' in result is true
PASS 'onerror' in result is true
-PASS 'abort' in result is true
PASS 'readyState' in result is true
An event should fire shortly...
PASS event.source != null is true
PASS 'onsuccess' in event.target is true
PASS 'onerror' in event.target is true
-PASS 'abort' in event.target is true
PASS 'readyState' in event.target is true
PASS event.target.readyState is event.target.DONE
db = event.result
-db.createObjectStore('storeName', null)
+db.setVersion('new version')
PASS 'onsuccess' in result is true
PASS 'onerror' in result is true
-PASS 'abort' in result is true
PASS 'readyState' in result is true
An event should fire shortly...
PASS event.source != null is true
PASS 'onsuccess' in event.target is true
PASS 'onerror' in event.target is true
-PASS 'abort' in event.target is true
PASS 'readyState' in event.target is true
PASS event.target.readyState is event.target.DONE
-event.result.add('value', 'key')
+trans = event.result
+PASS trans !== null is true
+Deleted all object stores.
+store = db.createObjectStore('storeName', null)
+store.createIndex('indexName', '')
+PASS store.indexNames.contains('indexName') is true
+store.add('value', 'key')
PASS 'onsuccess' in result is true
PASS 'onerror' in result is true
-PASS 'abort' in result is true
PASS 'readyState' in result is true
An event should fire shortly...
PASS event.source != null is true
PASS 'onsuccess' in event.target is true
PASS 'onerror' in event.target is true
-PASS 'abort' in event.target is true
PASS 'readyState' in event.target is true
PASS event.target.readyState is event.target.DONE
-event.source.get('key')
+db.transaction()
+store = transaction.objectStore('storeName')
+store.get('key')
PASS 'onsuccess' in result is true
PASS 'onerror' in result is true
-PASS 'abort' in result is true
PASS 'readyState' in result is true
An event should fire shortly...
PASS event.source != null is true
PASS 'onsuccess' in event.target is true
PASS 'onerror' in event.target is true
-PASS 'abort' in event.target is true
PASS 'readyState' in event.target is true
PASS event.target.readyState is event.target.DONE
PASS event.result is "value"
-event.source.createIndex('indexName', '')
-PASS 'onsuccess' in result is true
-PASS 'onerror' in result is true
-PASS 'abort' in result is true
-PASS 'readyState' in result is true
-An event should fire shortly...
-
-Success event fired:
-PASS 'result' in event is true
-PASS 'code' in event is false
-PASS 'message' in event is false
-PASS 'source' in event is true
-PASS event.source != null is true
-PASS 'onsuccess' in event.target is true
-PASS 'onerror' in event.target is true
-PASS 'abort' in event.target is true
-PASS 'readyState' in event.target is true
-PASS event.target.readyState is event.target.DONE
-
-PASS event.source.indexNames.contains('indexName') is true
-db.removeObjectStore('storeName')
+db.setVersion('new version')
PASS 'onsuccess' in result is true
PASS 'onerror' in result is true
-PASS 'abort' in result is true
PASS 'readyState' in result is true
An event should fire shortly...
PASS event.source != null is true
PASS 'onsuccess' in event.target is true
PASS 'onerror' in event.target is true
-PASS 'abort' in event.target is true
PASS 'readyState' in event.target is true
PASS event.target.readyState is event.target.DONE
+trans = event.result
+PASS trans !== null is true
+db.deleteObjectStore('storeName')
db.createObjectStore('storeName', null)
+db.transaction()
+store = transaction.objectStore('storeName')
+store.get('key')
PASS 'onsuccess' in result is true
PASS 'onerror' in result is true
-PASS 'abort' in result is true
-PASS 'readyState' in result is true
-An event should fire shortly...
-
-Success event fired:
-PASS 'result' in event is true
-PASS 'code' in event is false
-PASS 'message' in event is false
-PASS 'source' in event is true
-PASS event.source != null is true
-PASS 'onsuccess' in event.target is true
-PASS 'onerror' in event.target is true
-PASS 'abort' in event.target is true
-PASS 'readyState' in event.target is true
-PASS event.target.readyState is event.target.DONE
-
-event.result.get('key')
-PASS 'onsuccess' in result is true
-PASS 'onerror' in result is true
-PASS 'abort' in result is true
PASS 'readyState' in result is true
An event should fire shortly...
PASS event.source != null is true
PASS 'onsuccess' in event.target is true
PASS 'onerror' in event.target is true
-PASS 'abort' in event.target is true
PASS 'readyState' in event.target is true
PASS event.target.readyState is event.target.DONE