OLD | NEW |
1 Test IndexedDB readonly properties | 1 Test IndexedDB readonly properties |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; | |
7 | |
8 dbname = "readonly-properties.html" | 6 dbname = "readonly-properties.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 objectStore = db.createObjectStore('foo'); | 9 objectStore = db.createObjectStore('foo'); |
12 trying to set readonly property objectStore.transaction | 10 trying to set readonly property objectStore.transaction |
13 objectStore.transaction = this | 11 objectStore.transaction = this |
14 PASS objectStore.transaction is still [object IDBTransaction] | 12 PASS objectStore.transaction is still [object IDBTransaction] |
15 PASS successfullyParsed is true | 13 PASS successfullyParsed is true |
16 | 14 |
17 TEST COMPLETE | 15 TEST COMPLETE |
18 | 16 |
OLD | NEW |