IndexedDB: don't expose IDBDatabaseError to script
[WebKit-https.git] / LayoutTests / storage / indexeddb / list-ordering-expected.txt
1 Test string list ordering in IndexedDB.
2
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 check that the expected order is the canonical JS sort order:
9 sorted_order = expected_order.slice(); sorted_order.sort()
10 PASS areArraysEqual(sorted_order, expected_order) is true
11
12 testStoresAndIndexes():
13 indexedDB.deleteDatabase('list-ordering')
14 indexedDB.open('list-ordering')
15 db = request.result
16 PASS db.version is ""
17 db.setVersion('1')
18
19 Object stores:
20 db.createObjectStore("𝄞")
21 db.createObjectStore("�")
22 db.createObjectStore("Ā")
23 db.createObjectStore("က")
24 db.createObjectStore("á")
25 db.createObjectStore("ÿ")
26 db.createObjectStore("Á")
27 db.createObjectStore("à")
28 db.createObjectStore("\7f")
29 db.createObjectStore("À")
30 db.createObjectStore("a")
31 db.createObjectStore("b")
32 db.createObjectStore("A")
33 db.createObjectStore("B")
34 db.createObjectStore("0")
35 db.createObjectStore("1")
36 db.createObjectStore("\u0000")
37 db.createObjectStore("")
38 PASS areArraysEqual(db.objectStoreNames, expected_order) is true
39
40 Indexes:
41 store = db.createObjectStore('store')
42 store.createIndex("𝄞", 'keyPath')
43 store.createIndex("�", 'keyPath')
44 store.createIndex("Ā", 'keyPath')
45 store.createIndex("က", 'keyPath')
46 store.createIndex("á", 'keyPath')
47 store.createIndex("ÿ", 'keyPath')
48 store.createIndex("Á", 'keyPath')
49 store.createIndex("à", 'keyPath')
50 store.createIndex("\7f", 'keyPath')
51 store.createIndex("À", 'keyPath')
52 store.createIndex("a", 'keyPath')
53 store.createIndex("b", 'keyPath')
54 store.createIndex("A", 'keyPath')
55 store.createIndex("B", 'keyPath')
56 store.createIndex("0", 'keyPath')
57 store.createIndex("1", 'keyPath')
58 store.createIndex("\u0000", 'keyPath')
59 store.createIndex("", 'keyPath')
60 PASS areArraysEqual(store.indexNames, expected_order) is true
61 PASS successfullyParsed is true
62
63 TEST COMPLETE
64