OLD | NEW |
1 Ensure DataCloneError is consistently thrown by IndexedDB methods | 1 Ensure DataCloneError is consistently thrown by IndexedDB methods |
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 = "clone-exception.html" | 6 dbname = "clone-exception.html" |
7 | 7 |
8 doFirstOpen(): | 8 doFirstOpen(): |
9 indexedDB.open(dbname + '1') | 9 indexedDB.open(dbname + '1') |
10 | 10 |
11 onUpgradeNeeded(): | 11 onUpgradeNeeded(): |
12 Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, 0); | 12 Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, 0); |
13 PASS Exception was thrown. | 13 PASS Exception was thrown. |
14 PASS code is 25 | 14 PASS code is 25 |
15 PASS ename is 'DataCloneError' | 15 PASS ename is 'DataCloneError' |
16 Exception message: An object could not be cloned. | 16 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could
not be cloned. |
17 | 17 |
18 doSecondOpen(): | 18 doSecondOpen(): |
19 indexedDB.open(dbname + '2') | 19 indexedDB.open(dbname + '2') |
20 | 20 |
21 onUpgradeNeeded(): | 21 onUpgradeNeeded(): |
22 Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, 0); | 22 Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, 0); |
23 PASS Exception was thrown. | 23 PASS Exception was thrown. |
24 PASS code is 25 | 24 PASS code is 25 |
25 PASS ename is 'DataCloneError' | 25 PASS ename is 'DataCloneError' |
26 Exception message: An object could not be cloned. | 26 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could
not be cloned. |
27 | 27 |
28 doThirdOpen(): | 28 doThirdOpen(): |
29 indexedDB.open(dbname + '3') | 29 indexedDB.open(dbname + '3') |
30 | 30 |
31 onUpgradeNeeded(): | 31 onUpgradeNeeded(): |
32 Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, INVALI
D_KEY); | 32 Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, INVALI
D_KEY); |
33 PASS Exception was thrown. | 33 PASS Exception was thrown. |
34 PASS code is 25 | 34 PASS code is 25 |
35 PASS ename is 'DataCloneError' | 35 PASS ename is 'DataCloneError' |
36 Exception message: An object could not be cloned. | 36 Exception message: Failed to execute 'put' on 'IDBObjectStore': An object could
not be cloned. |
37 PASS successfullyParsed is true | 37 PASS successfullyParsed is true |
38 | 38 |
39 TEST COMPLETE | 39 TEST COMPLETE |
40 | 40 |
OLD | NEW |