OLD | NEW |
1 Test IndexedDB invalid keys | 1 Test IndexedDB invalid keys |
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; | 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; |
7 | 7 |
8 dbname = "invalid-keys.html" | 8 dbname = "invalid-keys.html" |
9 indexedDB.deleteDatabase(dbname) | 9 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 10 indexedDB.open(dbname) |
11 db.createObjectStore('foo'); | 11 db.createObjectStore('foo'); |
12 Expecting exception from request = objectStore.put('value', void 0) | 12 Expecting exception from request = objectStore.put('value', void 0) |
13 PASS Exception was thrown. | 13 PASS Exception was thrown. |
14 PASS code is 0 | 14 PASS code is 0 |
15 PASS ename is 'DataError' | 15 PASS ename is 'DataError' |
16 Exception message: The object store uses out-of-line keys and has no key generat
or and the key parameter was not provided. | 16 Exception message: Failed to execute 'put' on 'IDBObjectStore': The object store
uses out-of-line keys and has no key generator and the key parameter was not pr
ovided. |
17 Expecting exception from request = objectStore.put('value', null) | 17 Expecting exception from request = objectStore.put('value', null) |
18 PASS Exception was thrown. | 18 PASS Exception was thrown. |
19 PASS code is 0 | 19 PASS code is 0 |
20 PASS ename is 'DataError' | 20 PASS ename is 'DataError' |
21 Exception message: The parameter is not a valid key. | 21 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
22 Expecting exception from request = objectStore.put('value', (function() { return
arguments; }())) | 22 Expecting exception from request = objectStore.put('value', (function() { return
arguments; }())) |
23 PASS Exception was thrown. | 23 PASS Exception was thrown. |
24 PASS code is 0 | 24 PASS code is 0 |
25 PASS ename is 'DataError' | 25 PASS ename is 'DataError' |
26 Exception message: The parameter is not a valid key. | 26 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
27 Expecting exception from request = objectStore.put('value', true) | 27 Expecting exception from request = objectStore.put('value', true) |
28 PASS Exception was thrown. | 28 PASS Exception was thrown. |
29 PASS code is 0 | 29 PASS code is 0 |
30 PASS ename is 'DataError' | 30 PASS ename is 'DataError' |
31 Exception message: The parameter is not a valid key. | 31 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
32 Expecting exception from request = objectStore.put('value', false) | 32 Expecting exception from request = objectStore.put('value', false) |
33 PASS Exception was thrown. | 33 PASS Exception was thrown. |
34 PASS code is 0 | 34 PASS code is 0 |
35 PASS ename is 'DataError' | 35 PASS ename is 'DataError' |
36 Exception message: The parameter is not a valid key. | 36 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
37 Expecting exception from request = objectStore.put('value', new Error) | 37 Expecting exception from request = objectStore.put('value', new Error) |
38 PASS Exception was thrown. | 38 PASS Exception was thrown. |
39 PASS code is 0 | 39 PASS code is 0 |
40 PASS ename is 'DataError' | 40 PASS ename is 'DataError' |
41 Exception message: The parameter is not a valid key. | 41 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
42 Expecting exception from request = objectStore.put('value', function () {}) | 42 Expecting exception from request = objectStore.put('value', function () {}) |
43 PASS Exception was thrown. | 43 PASS Exception was thrown. |
44 PASS code is 0 | 44 PASS code is 0 |
45 PASS ename is 'DataError' | 45 PASS ename is 'DataError' |
46 Exception message: The parameter is not a valid key. | 46 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
47 Expecting exception from request = objectStore.put('value', JSON) | 47 Expecting exception from request = objectStore.put('value', JSON) |
48 PASS Exception was thrown. | 48 PASS Exception was thrown. |
49 PASS code is 0 | 49 PASS code is 0 |
50 PASS ename is 'DataError' | 50 PASS ename is 'DataError' |
51 Exception message: The parameter is not a valid key. | 51 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
52 Expecting exception from request = objectStore.put('value', Math) | 52 Expecting exception from request = objectStore.put('value', Math) |
53 PASS Exception was thrown. | 53 PASS Exception was thrown. |
54 PASS code is 0 | 54 PASS code is 0 |
55 PASS ename is 'DataError' | 55 PASS ename is 'DataError' |
56 Exception message: The parameter is not a valid key. | 56 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
57 Expecting exception from request = objectStore.put('value', NaN) | 57 Expecting exception from request = objectStore.put('value', NaN) |
58 PASS Exception was thrown. | 58 PASS Exception was thrown. |
59 PASS code is 0 | 59 PASS code is 0 |
60 PASS ename is 'DataError' | 60 PASS ename is 'DataError' |
61 Exception message: The parameter is not a valid key. | 61 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
62 Expecting exception from request = objectStore.put('value', new Date(NaN)) | 62 Expecting exception from request = objectStore.put('value', new Date(NaN)) |
63 PASS Exception was thrown. | 63 PASS Exception was thrown. |
64 PASS code is 0 | 64 PASS code is 0 |
65 PASS ename is 'DataError' | 65 PASS ename is 'DataError' |
66 Exception message: The parameter is not a valid key. | 66 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
67 Expecting exception from request = objectStore.put('value', {}) | 67 Expecting exception from request = objectStore.put('value', {}) |
68 PASS Exception was thrown. | 68 PASS Exception was thrown. |
69 PASS code is 0 | 69 PASS code is 0 |
70 PASS ename is 'DataError' | 70 PASS ename is 'DataError' |
71 Exception message: The parameter is not a valid key. | 71 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
72 Expecting exception from request = objectStore.put('value', /regex/) | 72 Expecting exception from request = objectStore.put('value', /regex/) |
73 PASS Exception was thrown. | 73 PASS Exception was thrown. |
74 PASS code is 0 | 74 PASS code is 0 |
75 PASS ename is 'DataError' | 75 PASS ename is 'DataError' |
76 Exception message: The parameter is not a valid key. | 76 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
77 Expecting exception from request = objectStore.put('value', self) | 77 Expecting exception from request = objectStore.put('value', self) |
78 PASS Exception was thrown. | 78 PASS Exception was thrown. |
79 PASS code is 0 | 79 PASS code is 0 |
80 PASS ename is 'DataError' | 80 PASS ename is 'DataError' |
81 Exception message: The parameter is not a valid key. | 81 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
82 Expecting exception from request = objectStore.put('value', self.document) | 82 Expecting exception from request = objectStore.put('value', self.document) |
83 PASS Exception was thrown. | 83 PASS Exception was thrown. |
84 PASS code is 0 | 84 PASS code is 0 |
85 PASS ename is 'DataError' | 85 PASS ename is 'DataError' |
86 Exception message: The parameter is not a valid key. | 86 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
87 Expecting exception from request = objectStore.put('value', self.document.body) | 87 Expecting exception from request = objectStore.put('value', self.document.body) |
88 PASS Exception was thrown. | 88 PASS Exception was thrown. |
89 PASS code is 0 | 89 PASS code is 0 |
90 PASS ename is 'DataError' | 90 PASS ename is 'DataError' |
91 Exception message: The parameter is not a valid key. | 91 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is
not a valid key. |
92 PASS successfullyParsed is true | 92 PASS successfullyParsed is true |
93 | 93 |
94 TEST COMPLETE | 94 TEST COMPLETE |
95 | 95 |
OLD | NEW |