/home/clopez/webkit/webkit/layout-test-results/storage/indexeddb/mozilla/object-cursors-actual.txt

1 Test IndexedDB's index cursors
 1FAIL: Timed out waiting for notifyDone to be called
22
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.deleteDatabase(dbname)
9 indexedDB.open(dbname)
10 autoIncrement = false;
11 objectStore = db.createObjectStore('a', { keyPath: 'id', autoIncrement: autoIncrement });
12 objectStore.createIndex(indexes[j].name, 'name', indexes[j].options);
13 objectStore.createIndex(indexes[j].name, 'name', indexes[j].options);
14 data = { name: 'Ben', id: 1 };
15 request = objectStore.add(data);
16 index = objectStore.index(indexes[j].name);
17 request = index.openCursor();
18 index = objectStore.index(indexes[j].name);
19 request = index.openCursor();
20 PASS event.target.result.value.name is 'Ben'
21 PASS event.target.result.value.name is 'Ben'
22 autoIncrement = true;
23 objectStore = db.createObjectStore('b', { keyPath: 'id', autoIncrement: autoIncrement });
24 objectStore.createIndex(indexes[j].name, 'name', indexes[j].options);
25 objectStore.createIndex(indexes[j].name, 'name', indexes[j].options);
26 data = { name: 'Ben' };
27 request = objectStore.add(data);
28 index = objectStore.index(indexes[j].name);
29 request = index.openCursor();
30 index = objectStore.index(indexes[j].name);
31 request = index.openCursor();
32 PASS event.target.result.value.name is 'Ben'
33 PASS event.target.result.value.name is 'Ben'
34 PASS successfullyParsed is true
35 
36 TEST COMPLETE
37