IndexedDB: don't expose IDBDatabaseError to script
[WebKit-https.git] / LayoutTests / storage / indexeddb / factory-deletedatabase-interactions-expected.txt
1 Test the deleteDatabase call and its interaction with open/setVersion
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
8
9 TEST: deleteDatabase blocked on open handles
10 self.dbname = 'test1'; self.ver = 1; self.steps = []
11 'h.open'
12 'h.open.onsuccess'
13 'deleteDatabase()'
14 'h.onversionchange'
15     h closing, but not immediately
16 'deleteDatabase().onblocked'
17 'h.close'
18 'deleteDatabase().onsuccess'
19 PASS self.steps.toString() is "h.open,h.open.onsuccess,deleteDatabase(),h.onversionchange,deleteDatabase().onblocked,h.close,deleteDatabase().onsuccess"
20
21 TEST: deleteDatabase not blocked when handles close immediately
22 self.dbname = 'test2'; self.ver = 1; self.steps = []
23 'h.open'
24 'h.open.onsuccess'
25 'deleteDatabase()'
26 'h.onversionchange'
27     h closing immediately
28 'h.close'
29 'deleteDatabase().onblocked'
30 'deleteDatabase().onsuccess'
31 NOTE: Will FAIL with extra bogus deleteDatabase().onblocked step; https://bugs.webkit.org/show_bug.cgi?id=71130
32 FAIL self.steps.toString() should be h.open,h.open.onsuccess,deleteDatabase(),h.onversionchange,h.close,deleteDatabase().onsuccess. Was h.open,h.open.onsuccess,deleteDatabase(),h.onversionchange,h.close,deleteDatabase().onblocked,deleteDatabase().onsuccess.
33
34 TEST: deleteDatabase is delayed if a VERSION_CHANGE transaction is running
35 self.dbname = 'test3'; self.ver = 1; self.steps = []
36 'h.open'
37 'h.open.onsuccess'
38 'h.setVersion'
39 'deleteDatabase()'
40 'h.setVersion.onsuccess'
41 'h.setVersion.transaction-complete'
42 'h.onversionchange'
43     h closing, but not immediately
44 'deleteDatabase().onblocked'
45 'h.close'
46 'deleteDatabase().onsuccess'
47 PASS self.steps.toString() is "h.open,h.open.onsuccess,h.setVersion,deleteDatabase(),h.setVersion.onsuccess,h.setVersion.transaction-complete,h.onversionchange,deleteDatabase().onblocked,h.close,deleteDatabase().onsuccess"
48 PASS successfullyParsed is true
49
50 TEST COMPLETE
51