tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / storage / indexeddb / invalid-keys-expected.txt
1 Test IndexedDB invalid keys
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB;
7 PASS indexedDB == null is false
8 IDBDatabaseException = window.IDBDatabaseException || window.webkitIDBDatabaseException;
9 PASS IDBDatabaseException == null is false
10 indexedDB.open(name, description)
11 db = event.target.result
12 request = db.setVersion('1')
13 Deleted all object stores.
14 db.createObjectStore('foo');
15 Expecting exception from request = objectStore.put('value', void 0)
16 PASS Exception was thrown.
17 PASS code is IDBDatabaseException.DATA_ERR
18 Expecting exception from request = objectStore.put('value', null)
19 PASS Exception was thrown.
20 PASS code is IDBDatabaseException.DATA_ERR
21 Expecting exception from request = objectStore.put('value', (function() { return arguments; }()))
22 PASS Exception was thrown.
23 PASS code is IDBDatabaseException.DATA_ERR
24 Expecting exception from request = objectStore.put('value', true)
25 PASS Exception was thrown.
26 PASS code is IDBDatabaseException.DATA_ERR
27 Expecting exception from request = objectStore.put('value', false)
28 PASS Exception was thrown.
29 PASS code is IDBDatabaseException.DATA_ERR
30 Expecting exception from request = objectStore.put('value', new Error)
31 PASS Exception was thrown.
32 PASS code is IDBDatabaseException.DATA_ERR
33 Expecting exception from request = objectStore.put('value', function () {})
34 PASS Exception was thrown.
35 PASS code is IDBDatabaseException.DATA_ERR
36 Expecting exception from request = objectStore.put('value', JSON)
37 PASS Exception was thrown.
38 PASS code is IDBDatabaseException.DATA_ERR
39 Expecting exception from request = objectStore.put('value', Math)
40 PASS Exception was thrown.
41 PASS code is IDBDatabaseException.DATA_ERR
42 Expecting exception from request = objectStore.put('value', NaN)
43 PASS Exception was thrown.
44 PASS code is IDBDatabaseException.DATA_ERR
45 Expecting exception from request = objectStore.put('value', {})
46 PASS Exception was thrown.
47 PASS code is IDBDatabaseException.DATA_ERR
48 Expecting exception from request = objectStore.put('value', /regex/)
49 PASS Exception was thrown.
50 PASS code is IDBDatabaseException.DATA_ERR
51 Expecting exception from request = objectStore.put('value', window)
52 PASS Exception was thrown.
53 PASS code is IDBDatabaseException.DATA_ERR
54 Expecting exception from request = objectStore.put('value', window.document)
55 PASS Exception was thrown.
56 PASS code is IDBDatabaseException.DATA_ERR
57 Expecting exception from request = objectStore.put('value', window.document.body)
58 PASS Exception was thrown.
59 PASS code is IDBDatabaseException.DATA_ERR
60 PASS successfullyParsed is true
61
62 TEST COMPLETE
63