| 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 dbname = "structured-clone.html" | 6 dbname = "structured-clone.html" |
| 7 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 8 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 9 store = db.createObjectStore('storeName') | 9 store = db.createObjectStore('storeName') |
| 10 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: |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 | 831 |
| 832 Test types that can't be cloned: | 832 Test types that can't be cloned: |
| 833 | 833 |
| 834 transaction = db.transaction('storeName', 'readwrite') | 834 transaction = db.transaction('storeName', 'readwrite') |
| 835 store = transaction.objectStore('storeName') | 835 store = transaction.objectStore('storeName') |
| 836 | 836 |
| 837 Other JavaScript object types: | 837 Other JavaScript object types: |
| 838 Expecting exception from store.put(new Error, 'key') | 838 Expecting exception from store.put(new Error, 'key') |
| 839 PASS Exception was thrown. | 839 PASS Exception was thrown. |
| 840 PASS code is DOMException.DATA_CLONE_ERR | 840 PASS code is DOMException.DATA_CLONE_ERR |
| 841 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could
not be cloned. | 841 Exception message: Failed to execute 'put' on 'IDBObjectStore': Error could not
be cloned. |
| 842 Expecting exception from store.put(new Function, 'key') | 842 Expecting exception from store.put(new Function, 'key') |
| 843 PASS Exception was thrown. | 843 PASS Exception was thrown. |
| 844 PASS code is DOMException.DATA_CLONE_ERR | 844 PASS code is DOMException.DATA_CLONE_ERR |
| 845 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could
not be cloned. | 845 Exception message: Failed to execute 'put' on 'IDBObjectStore': function anonymo
us() { |
| 846 |
| 847 } could not be cloned. |
| 846 | 848 |
| 847 Other host object types: | 849 Other host object types: |
| 848 Expecting exception from store.put(self, 'key') | 850 Expecting exception from store.put(self, 'key') |
| 849 PASS Exception was thrown. | 851 PASS Exception was thrown. |
| 850 PASS code is DOMException.DATA_CLONE_ERR | 852 PASS code is DOMException.DATA_CLONE_ERR |
| 851 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could
not be cloned. | 853 Exception message: Failed to execute 'put' on 'IDBObjectStore': #<Window> could
not be cloned. |
| 852 Expecting exception from store.put(document, 'key') | 854 Expecting exception from store.put(document, 'key') |
| 853 PASS Exception was thrown. | 855 PASS Exception was thrown. |
| 854 PASS code is DOMException.DATA_CLONE_ERR | 856 PASS code is DOMException.DATA_CLONE_ERR |
| 855 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could
not be cloned. | 857 Exception message: Failed to execute 'put' on 'IDBObjectStore': HTMLDocument obj
ect could not be cloned. |
| 856 Expecting exception from store.put(document.body, 'key') | 858 Expecting exception from store.put(document.body, 'key') |
| 857 PASS Exception was thrown. | 859 PASS Exception was thrown. |
| 858 PASS code is DOMException.DATA_CLONE_ERR | 860 PASS code is DOMException.DATA_CLONE_ERR |
| 859 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could
not be cloned. | 861 Exception message: Failed to execute 'put' on 'IDBObjectStore': HTMLBodyElement
object could not be cloned. |
| 860 PASS successfullyParsed is true | 862 PASS successfullyParsed is true |
| 861 | 863 |
| 862 TEST COMPLETE | 864 TEST COMPLETE |
| 863 | 865 |
| OLD | NEW |