3f48ccd05ab6dd4f6ef094e919f5b2a099a2d952
[WebKit-https.git] / LayoutTests / storage / indexeddb / versionchangerequest-activedomobject-expected.txt
1 Ensure that IDBVersionChangeRequest objects are not GC'd if they have pending events
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
7 PASS Boolean(indexedDB && IDBCursor && IDBDatabase && IDBDatabaseError && IDBDatabaseException && IDBFactory && IDBIndex && IDBKeyRange && IDBObjectStore && IDBRequest && IDBTransaction) is true
8
9
10 self.dbname = 'versionchangerequest-activedomobject'
11
12 testDeleteDatabase():
13 indexedDB.deleteDatabase(self.dbname)
14 self.gc()
15 PASS deleteDatabase's IDBVersionChangeRequest.onsuccess event fired
16
17 testSetVersion():
18 openRequest = indexedDB.open(self.dbname)
19 db = openRequest.result
20 db.setVersion('1')
21 self.gc()
22 PASS setVersion's IDBVersionChangeRequest.onsuccess event fired
23 PASS successfullyParsed is true
24
25 TEST COMPLETE
26