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; | 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; |
7 | 7 |
8 dbname = "structured-clone.html" | 8 dbname = "structured-clone.html" |
9 indexedDB.deleteDatabase(dbname) | 9 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 10 indexedDB.open(dbname) |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 | 776 |
777 Test types that can't be cloned: | 777 Test types that can't be cloned: |
778 | 778 |
779 transaction = db.transaction('storeName', 'readwrite') | 779 transaction = db.transaction('storeName', 'readwrite') |
780 store = transaction.objectStore('storeName') | 780 store = transaction.objectStore('storeName') |
781 | 781 |
782 Other JavaScript object types: | 782 Other JavaScript object types: |
783 Expecting exception from store.put(new Error, 'key') | 783 Expecting exception from store.put(new Error, 'key') |
784 PASS Exception was thrown. | 784 PASS Exception was thrown. |
785 PASS code is DOMException.DATA_CLONE_ERR | 785 PASS code is DOMException.DATA_CLONE_ERR |
| 786 Exception message: An object could not be cloned. |
786 Expecting exception from store.put(new Function, 'key') | 787 Expecting exception from store.put(new Function, 'key') |
787 PASS Exception was thrown. | 788 PASS Exception was thrown. |
788 PASS code is DOMException.DATA_CLONE_ERR | 789 PASS code is DOMException.DATA_CLONE_ERR |
| 790 Exception message: An object could not be cloned. |
789 | 791 |
790 Other host object types: | 792 Other host object types: |
791 Expecting exception from store.put(self, 'key') | 793 Expecting exception from store.put(self, 'key') |
792 PASS Exception was thrown. | 794 PASS Exception was thrown. |
793 PASS code is DOMException.DATA_CLONE_ERR | 795 PASS code is DOMException.DATA_CLONE_ERR |
| 796 Exception message: An object could not be cloned. |
794 Expecting exception from store.put(document, 'key') | 797 Expecting exception from store.put(document, 'key') |
795 PASS Exception was thrown. | 798 PASS Exception was thrown. |
796 PASS code is DOMException.DATA_CLONE_ERR | 799 PASS code is DOMException.DATA_CLONE_ERR |
| 800 Exception message: An object could not be cloned. |
797 Expecting exception from store.put(document.body, 'key') | 801 Expecting exception from store.put(document.body, 'key') |
798 PASS Exception was thrown. | 802 PASS Exception was thrown. |
799 PASS code is DOMException.DATA_CLONE_ERR | 803 PASS code is DOMException.DATA_CLONE_ERR |
| 804 Exception message: An object could not be cloned. |
800 PASS successfullyParsed is true | 805 PASS successfullyParsed is true |
801 | 806 |
802 TEST COMPLETE | 807 TEST COMPLETE |
803 | 808 |
OLD | NEW |