IndexedDB: don't expose IDBDatabaseError to script
[WebKit-https.git] / LayoutTests / storage / indexeddb / odd-strings-expected.txt
1 Test IndexedDB odd value datatypes
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 opening a database named null
9 indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)
10 db = event.target.result
11 request = db.setVersion('1')
12 Deleted all object stores.
13 objectStore = db.createObjectStore(testData[nextToOpen].name);
14 key = testData[nextToOpen].name
15 request = objectStore.add(key, key);
16 db.close()
17
18 opening a database named faihu
19 indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)
20 db = event.target.result
21 request = db.setVersion('1')
22 Deleted all object stores.
23 objectStore = db.createObjectStore(testData[nextToOpen].name);
24 key = testData[nextToOpen].name
25 request = objectStore.add(key, key);
26 db.close()
27
28 opening a database named unpaired surrogate
29 indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)
30 db = event.target.result
31 request = db.setVersion('1')
32 Deleted all object stores.
33 objectStore = db.createObjectStore(testData[nextToOpen].name);
34 key = testData[nextToOpen].name
35 request = objectStore.add(key, key);
36 db.close()
37
38 opening a database named fffe
39 indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)
40 db = event.target.result
41 request = db.setVersion('1')
42 Deleted all object stores.
43 objectStore = db.createObjectStore(testData[nextToOpen].name);
44 key = testData[nextToOpen].name
45 request = objectStore.add(key, key);
46 db.close()
47
48 opening a database named ffff
49 indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)
50 db = event.target.result
51 request = db.setVersion('1')
52 Deleted all object stores.
53 objectStore = db.createObjectStore(testData[nextToOpen].name);
54 key = testData[nextToOpen].name
55 request = objectStore.add(key, key);
56 db.close()
57
58 opening a database named line separator
59 indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)
60 db = event.target.result
61 request = db.setVersion('1')
62 Deleted all object stores.
63 objectStore = db.createObjectStore(testData[nextToOpen].name);
64 key = testData[nextToOpen].name
65 request = objectStore.add(key, key);
66 db.close()
67
68 reopening a database named null
69 indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)
70 db = event.target.result
71 request = db.setVersion('1')
72 trans = event.target.result
73 objectStore = trans.objectStore(testData[nextToOpen].name);
74 key = testData[nextToOpen].name
75 request = objectStore.openCursor();
76 cursor = event.target.result;
77 PASS cursor.key is testData[nextToOpen].name
78 PASS cursor.value is testData[nextToOpen].name
79
80 reopening a database named faihu
81 indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)
82 db = event.target.result
83 request = db.setVersion('1')
84 trans = event.target.result
85 objectStore = trans.objectStore(testData[nextToOpen].name);
86 key = testData[nextToOpen].name
87 request = objectStore.openCursor();
88 cursor = event.target.result;
89 PASS cursor.key is testData[nextToOpen].name
90 PASS cursor.value is testData[nextToOpen].name
91
92 reopening a database named unpaired surrogate
93 indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)
94 db = event.target.result
95 request = db.setVersion('1')
96 trans = event.target.result
97 objectStore = trans.objectStore(testData[nextToOpen].name);
98 key = testData[nextToOpen].name
99 request = objectStore.openCursor();
100 cursor = event.target.result;
101 PASS cursor.key is testData[nextToOpen].name
102 PASS cursor.value is testData[nextToOpen].name
103
104 reopening a database named fffe
105 indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)
106 db = event.target.result
107 request = db.setVersion('1')
108 trans = event.target.result
109 objectStore = trans.objectStore(testData[nextToOpen].name);
110 key = testData[nextToOpen].name
111 request = objectStore.openCursor();
112 cursor = event.target.result;
113 PASS cursor.key is testData[nextToOpen].name
114 PASS cursor.value is testData[nextToOpen].name
115
116 reopening a database named ffff
117 indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)
118 db = event.target.result
119 request = db.setVersion('1')
120 trans = event.target.result
121 objectStore = trans.objectStore(testData[nextToOpen].name);
122 key = testData[nextToOpen].name
123 request = objectStore.openCursor();
124 cursor = event.target.result;
125 PASS cursor.key is testData[nextToOpen].name
126 PASS cursor.value is testData[nextToOpen].name
127
128 reopening a database named line separator
129 indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)
130 db = event.target.result
131 request = db.setVersion('1')
132 trans = event.target.result
133 objectStore = trans.objectStore(testData[nextToOpen].name);
134 key = testData[nextToOpen].name
135 request = objectStore.openCursor();
136 cursor = event.target.result;
137 PASS cursor.key is testData[nextToOpen].name
138 PASS cursor.value is testData[nextToOpen].name
139 PASS successfullyParsed is true
140
141 TEST COMPLETE
142