1 Test string list ordering in IndexedDB.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "list-ordering.html"
7 indexedDB.deleteDatabase(dbname)
9 check that the expected order is the canonical JS sort order:
10 sorted_order = expected_order.slice(); sorted_order.sort()
11 PASS areArraysEqual(sorted_order, expected_order) is true
14 db.createObjectStore("𝄞")
15 db.createObjectStore("�")
16 db.createObjectStore("Ā")
17 db.createObjectStore("က")
18 db.createObjectStore("á")
19 db.createObjectStore("ÿ")
20 db.createObjectStore("Á")
21 db.createObjectStore("à")
22 db.createObjectStore("
\x7f")
23 db.createObjectStore("À")
24 db.createObjectStore("a")
25 db.createObjectStore("b")
26 db.createObjectStore("A")
27 db.createObjectStore("B")
28 db.createObjectStore("0")
29 db.createObjectStore("1")
30 db.createObjectStore("\u0000")
31 db.createObjectStore("")
32 PASS areArraysEqual(db.objectStoreNames, expected_order) is true
35 store = db.createObjectStore('store')
36 store.createIndex("𝄞", 'keyPath')
37 store.createIndex("�", 'keyPath')
38 store.createIndex("Ā", 'keyPath')
39 store.createIndex("က", 'keyPath')
40 store.createIndex("á", 'keyPath')
41 store.createIndex("ÿ", 'keyPath')
42 store.createIndex("Á", 'keyPath')
43 store.createIndex("à", 'keyPath')
44 store.createIndex("
\x7f", 'keyPath')
45 store.createIndex("À", 'keyPath')
46 store.createIndex("a", 'keyPath')
47 store.createIndex("b", 'keyPath')
48 store.createIndex("A", 'keyPath')
49 store.createIndex("B", 'keyPath')
50 store.createIndex("0", 'keyPath')
51 store.createIndex("1", 'keyPath')
52 store.createIndex("\u0000", 'keyPath')
53 store.createIndex("", 'keyPath')
54 PASS areArraysEqual(store.indexNames, expected_order) is true
55 PASS successfullyParsed is true