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 transaction = event.target.transaction;
11 objectStore1 = db.createObjectStore('foo');
12 objectStore2 = transaction.objectStore('foo');
13 PASS objectStore1 === objectStore2 is true
14 index1 = objectStore1.createIndex('bar', 'key');
15 index2 = objectStore2.index('bar');
16 PASS index1 === index2 is true
17 transaction = db.transaction('foo');
18 objectStore3 = transaction.objectStore('foo');
19 objectStore3.someProperty = 'xyz'
20 objectStore4 = transaction.objectStore('foo');
21 PASS objectStore3 === objectStore4 is true
22 PASS objectStore4.someProperty is "xyz"
23 PASS objectStore3 === objectStore1 is false
24 PASS objectStore4 === objectStore2 is false
25 index3 = objectStore3.index('bar');
26 index4 = objectStore4.index('bar');
27 PASS index3 === index4 is true
28 PASS index3 === index1 is false
29 PASS index4 === index2 is false
30 PASS successfullyParsed is true
31
32 TEST COMPLETE
33