| 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 Expecting exception from request = objectStore.put('value', null) | 17 Expecting exception from request = objectStore.put('value', null) |
| 17 PASS Exception was thrown. | 18 PASS Exception was thrown. |
| 18 PASS code is 0 | 19 PASS code is 0 |
| 19 PASS ename is 'DataError' | 20 PASS ename is 'DataError' |
| 21 Exception message: The parameter is not a valid key. |
| 20 Expecting exception from request = objectStore.put('value', (function() { return
arguments; }())) | 22 Expecting exception from request = objectStore.put('value', (function() { return
arguments; }())) |
| 21 PASS Exception was thrown. | 23 PASS Exception was thrown. |
| 22 PASS code is 0 | 24 PASS code is 0 |
| 23 PASS ename is 'DataError' | 25 PASS ename is 'DataError' |
| 26 Exception message: The parameter is not a valid key. |
| 24 Expecting exception from request = objectStore.put('value', true) | 27 Expecting exception from request = objectStore.put('value', true) |
| 25 PASS Exception was thrown. | 28 PASS Exception was thrown. |
| 26 PASS code is 0 | 29 PASS code is 0 |
| 27 PASS ename is 'DataError' | 30 PASS ename is 'DataError' |
| 31 Exception message: The parameter is not a valid key. |
| 28 Expecting exception from request = objectStore.put('value', false) | 32 Expecting exception from request = objectStore.put('value', false) |
| 29 PASS Exception was thrown. | 33 PASS Exception was thrown. |
| 30 PASS code is 0 | 34 PASS code is 0 |
| 31 PASS ename is 'DataError' | 35 PASS ename is 'DataError' |
| 36 Exception message: The parameter is not a valid key. |
| 32 Expecting exception from request = objectStore.put('value', new Error) | 37 Expecting exception from request = objectStore.put('value', new Error) |
| 33 PASS Exception was thrown. | 38 PASS Exception was thrown. |
| 34 PASS code is 0 | 39 PASS code is 0 |
| 35 PASS ename is 'DataError' | 40 PASS ename is 'DataError' |
| 41 Exception message: The parameter is not a valid key. |
| 36 Expecting exception from request = objectStore.put('value', function () {}) | 42 Expecting exception from request = objectStore.put('value', function () {}) |
| 37 PASS Exception was thrown. | 43 PASS Exception was thrown. |
| 38 PASS code is 0 | 44 PASS code is 0 |
| 39 PASS ename is 'DataError' | 45 PASS ename is 'DataError' |
| 46 Exception message: The parameter is not a valid key. |
| 40 Expecting exception from request = objectStore.put('value', JSON) | 47 Expecting exception from request = objectStore.put('value', JSON) |
| 41 PASS Exception was thrown. | 48 PASS Exception was thrown. |
| 42 PASS code is 0 | 49 PASS code is 0 |
| 43 PASS ename is 'DataError' | 50 PASS ename is 'DataError' |
| 51 Exception message: The parameter is not a valid key. |
| 44 Expecting exception from request = objectStore.put('value', Math) | 52 Expecting exception from request = objectStore.put('value', Math) |
| 45 PASS Exception was thrown. | 53 PASS Exception was thrown. |
| 46 PASS code is 0 | 54 PASS code is 0 |
| 47 PASS ename is 'DataError' | 55 PASS ename is 'DataError' |
| 56 Exception message: The parameter is not a valid key. |
| 48 Expecting exception from request = objectStore.put('value', NaN) | 57 Expecting exception from request = objectStore.put('value', NaN) |
| 49 PASS Exception was thrown. | 58 PASS Exception was thrown. |
| 50 PASS code is 0 | 59 PASS code is 0 |
| 51 PASS ename is 'DataError' | 60 PASS ename is 'DataError' |
| 61 Exception message: The parameter is not a valid key. |
| 52 Expecting exception from request = objectStore.put('value', new Date(NaN)) | 62 Expecting exception from request = objectStore.put('value', new Date(NaN)) |
| 53 PASS Exception was thrown. | 63 PASS Exception was thrown. |
| 54 PASS code is 0 | 64 PASS code is 0 |
| 55 PASS ename is 'DataError' | 65 PASS ename is 'DataError' |
| 66 Exception message: The parameter is not a valid key. |
| 56 Expecting exception from request = objectStore.put('value', {}) | 67 Expecting exception from request = objectStore.put('value', {}) |
| 57 PASS Exception was thrown. | 68 PASS Exception was thrown. |
| 58 PASS code is 0 | 69 PASS code is 0 |
| 59 PASS ename is 'DataError' | 70 PASS ename is 'DataError' |
| 71 Exception message: The parameter is not a valid key. |
| 60 Expecting exception from request = objectStore.put('value', /regex/) | 72 Expecting exception from request = objectStore.put('value', /regex/) |
| 61 PASS Exception was thrown. | 73 PASS Exception was thrown. |
| 62 PASS code is 0 | 74 PASS code is 0 |
| 63 PASS ename is 'DataError' | 75 PASS ename is 'DataError' |
| 76 Exception message: The parameter is not a valid key. |
| 64 Expecting exception from request = objectStore.put('value', self) | 77 Expecting exception from request = objectStore.put('value', self) |
| 65 PASS Exception was thrown. | 78 PASS Exception was thrown. |
| 66 PASS code is 0 | 79 PASS code is 0 |
| 67 PASS ename is 'DataError' | 80 PASS ename is 'DataError' |
| 81 Exception message: The parameter is not a valid key. |
| 68 Expecting exception from request = objectStore.put('value', self.document) | 82 Expecting exception from request = objectStore.put('value', self.document) |
| 69 PASS Exception was thrown. | 83 PASS Exception was thrown. |
| 70 PASS code is 0 | 84 PASS code is 0 |
| 71 PASS ename is 'DataError' | 85 PASS ename is 'DataError' |
| 86 Exception message: The parameter is not a valid key. |
| 72 Expecting exception from request = objectStore.put('value', self.document.body) | 87 Expecting exception from request = objectStore.put('value', self.document.body) |
| 73 PASS Exception was thrown. | 88 PASS Exception was thrown. |
| 74 PASS code is 0 | 89 PASS code is 0 |
| 75 PASS ename is 'DataError' | 90 PASS ename is 'DataError' |
| 91 Exception message: The parameter is not a valid key. |
| 76 PASS successfullyParsed is true | 92 PASS successfullyParsed is true |
| 77 | 93 |
| 78 TEST COMPLETE | 94 TEST COMPLETE |
| 79 | 95 |
| OLD | NEW |