| OLD | NEW |
| 1 Test string list ordering in IndexedDB. | 1 Test string list ordering in IndexedDB. |
| 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 = "list-ordering.html" | 6 dbname = "list-ordering.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 check that the expected order is the canonical JS sort order: | 9 check that the expected order is the canonical JS sort order: |
| 12 sorted_order = expected_order.slice(); sorted_order.sort() | 10 sorted_order = expected_order.slice(); sorted_order.sort() |
| 13 PASS areArraysEqual(sorted_order, expected_order) is true | 11 PASS areArraysEqual(sorted_order, expected_order) is true |
| 14 | 12 |
| 15 Object stores: | 13 Object stores: |
| 16 db.createObjectStore("𝄞") | 14 db.createObjectStore("𝄞") |
| 17 db.createObjectStore("�") | 15 db.createObjectStore("�") |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 store.createIndex("B", 'keyPath') | 49 store.createIndex("B", 'keyPath') |
| 52 store.createIndex("0", 'keyPath') | 50 store.createIndex("0", 'keyPath') |
| 53 store.createIndex("1", 'keyPath') | 51 store.createIndex("1", 'keyPath') |
| 54 store.createIndex("\u0000", 'keyPath') | 52 store.createIndex("\u0000", 'keyPath') |
| 55 store.createIndex("", 'keyPath') | 53 store.createIndex("", 'keyPath') |
| 56 PASS areArraysEqual(store.indexNames, expected_order) is true | 54 PASS areArraysEqual(store.indexNames, expected_order) is true |
| 57 PASS successfullyParsed is true | 55 PASS successfullyParsed is true |
| 58 | 56 |
| 59 TEST COMPLETE | 57 TEST COMPLETE |
| 60 | 58 |
| OLD | NEW |