a3adc511de2e06492c3c2b5fbff5901effca0ec6
[WebKit-https.git] / LayoutTests / storage / indexeddb / keypath-fetch-key-expected.txt
1 Test IndexedDB keyPaths
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 indexedDB.open(name, description)
9 db = event.target.result
10 request = db.setVersion('1')
11
12 testing simple identifier
13 Deleted all object stores.
14 objectStore = db.createObjectStore(testData[nextToOpen].name, {keyPath: testData[nextToOpen].keyPath});
15 result = objectStore.add(testData[nextToOpen].value);
16 result = objectStore.openCursor();
17 cursor = event.target.result;
18 PASS cursor.key is testData[nextToOpen].key
19
20 testing simple identifiers
21 Deleted all object stores.
22 objectStore = db.createObjectStore(testData[nextToOpen].name, {keyPath: testData[nextToOpen].keyPath});
23 result = objectStore.add(testData[nextToOpen].value);
24 result = objectStore.openCursor();
25 cursor = event.target.result;
26 PASS cursor.key is testData[nextToOpen].key
27
28 testing nested identifiers
29 Deleted all object stores.
30 objectStore = db.createObjectStore(testData[nextToOpen].name, {keyPath: testData[nextToOpen].keyPath});
31 result = objectStore.add(testData[nextToOpen].value);
32 result = objectStore.openCursor();
33 cursor = event.target.result;
34 PASS cursor.key is testData[nextToOpen].key
35
36 testing nested identifiers with distractions
37 Deleted all object stores.
38 objectStore = db.createObjectStore(testData[nextToOpen].name, {keyPath: testData[nextToOpen].keyPath});
39 result = objectStore.add(testData[nextToOpen].value);
40 result = objectStore.openCursor();
41 cursor = event.target.result;
42 PASS cursor.key is testData[nextToOpen].key
43 PASS successfullyParsed is true
44
45 TEST COMPLETE
46