1 Ensure DataCloneError is consistently thrown by IndexedDB methods
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "clone-exception.html"
9 indexedDB.open(dbname + '1')
12 Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, 0);
13 PASS Exception was thrown.
15 PASS ename is 'DataCloneError'
16 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned.
19 indexedDB.open(dbname + '2')
22 Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, 0);
23 PASS Exception was thrown.
25 PASS ename is 'DataCloneError'
26 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned.
29 indexedDB.open(dbname + '3')
32 Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, INVALID_KEY);
33 PASS Exception was thrown.
35 PASS ename is 'DataCloneError'
36 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned.
37 PASS successfullyParsed is true