OSDN Git Service

Merge WebKit at r73109: Initial merge by git.
[android-x86/external-webkit.git] / LayoutTests / storage / indexeddb / create-object-store-options-expected.txt
1 Test IndexedDB's createObjectStore's various options
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 PASS 'webkitIndexedDB' in window is true
7 PASS webkitIndexedDB == null is false
8 webkitIndexedDB.open('name', 'description')
9 PASS 'onsuccess' in result is true
10 PASS 'onerror' in result is true
11 PASS 'readyState' in result is true
12 An event should fire shortly...
13
14 db = event.result
15 result = db.setVersion('version 1')
16 Deleted all object stores.
17 db.createObjectStore('a', {keyPath: 'a'})
18 db.createObjectStore('b')
19 db.createObjectStore('c', {autoIncrement: true});
20 PASS Exception thrown
21 PASS code is webkitIDBDatabaseException.UNKNOWN_ERR
22 trans = db.transaction({mode: webkitIDBTransaction.READ_WRITE})
23 PASS trans.mode is webkitIDBTransaction.READ_WRITE
24 trans.objectStore('a').put({'a': 0})
25 trans.objectStore('b').put({'a': 0}, 0)
26 trans.objectStore('a').get(0)
27 PASS event.result.a is {a: 0}
28 trans.objectStore('b').get(0)
29 PASS event.result.a is {a: 0}
30 PASS successfullyParsed is true
31
32 TEST COMPLETE
33