| OLD | NEW |
| 1 Test structured clone permutations in IndexedDB. File/FileList tests require Dum
pRenderTree. | 1 Test structured clone permutations in IndexedDB. File/FileList tests require Dum
pRenderTree. |
| 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; | |
| 7 | |
| 8 dbname = "structured-clone.html" | 6 dbname = "structured-clone.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 store = db.createObjectStore('storeName') | 9 store = db.createObjectStore('storeName') |
| 12 This index is not used, but evaluating key path on each put() call will exercise
(de)serialization: | 10 This index is not used, but evaluating key path on each put() call will exercise
(de)serialization: |
| 13 store.createIndex('indexName', 'dummyKeyPath') | 11 store.createIndex('indexName', 'dummyKeyPath') |
| 14 | 12 |
| 15 Running tests... | 13 Running tests... |
| 16 | 14 |
| 17 Testing: undefined | 15 Testing: undefined |
| (...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 PASS code is DOMException.DATA_CLONE_ERR | 854 PASS code is DOMException.DATA_CLONE_ERR |
| 857 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could
not be cloned. | 855 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could
not be cloned. |
| 858 Expecting exception from store.put(document.body, 'key') | 856 Expecting exception from store.put(document.body, 'key') |
| 859 PASS Exception was thrown. | 857 PASS Exception was thrown. |
| 860 PASS code is DOMException.DATA_CLONE_ERR | 858 PASS code is DOMException.DATA_CLONE_ERR |
| 861 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could
not be cloned. | 859 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could
not be cloned. |
| 862 PASS successfullyParsed is true | 860 PASS successfullyParsed is true |
| 863 | 861 |
| 864 TEST COMPLETE | 862 TEST COMPLETE |
| 865 | 863 |
| OLD | NEW |