| Ensure DataCloneError is consistently thrown by IndexedDB methods |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| |
| doFirstOpen(): |
| indexedDB.open(dbname + '1') |
| |
| onUpgradeNeeded(): |
| Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, 0); |
| PASS Exception was thrown. |
| PASS code is 25 |
| PASS ename is 'DataCloneError' |
| Exception message: The object can not be cloned. |
| |
| doSecondOpen(): |
| indexedDB.open(dbname + '2') |
| |
| onUpgradeNeeded(): |
| Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, 0); |
| PASS Exception was thrown. |
| PASS code is 25 |
| PASS ename is 'DataCloneError' |
| Exception message: The object can not be cloned. |
| |
| doThirdOpen(): |
| indexedDB.open(dbname + '3') |
| |
| onUpgradeNeeded(): |
| Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, INVALID_KEY); |
| PASS Exception was thrown. |
| PASS code is 25 |
| PASS ename is 'DataCloneError' |
| Exception message: The object can not be cloned. |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |