OLD | NEW |
1 This is a test to make sure DOM Storage mutations fire StorageEvents that are ca
ught by the event listener set via window.onstorage. | 1 This is a test to make sure DOM Storage mutations fire StorageEvents that are ca
ught by the event listener set via window.onstorage. |
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 Testing sessionStorage | 6 Testing sessionStorage |
7 storage.clear() | 7 storage.clear() |
8 PASS storage.length is 0 | 8 PASS storage.length is 0 |
| 9 PASS successfullyParsed is true |
| 10 |
| 11 TEST COMPLETE |
9 Reset storage event list | 12 Reset storage event list |
10 storageEventList = new Array() | 13 storageEventList = new Array() |
11 storage.setItem('FOO', 'BAR') | 14 storage.setItem('FOO', 'BAR') |
12 PASS storageEventList.length is 1 | 15 PASS storageEventList.length is 1 |
13 PASS storageEventList[0].key is "FOO" | 16 PASS storageEventList[0].key is "FOO" |
14 PASS storageEventList[0].oldValue is null | 17 PASS storageEventList[0].oldValue is null |
15 PASS storageEventList[0].newValue is "BAR" | 18 PASS storageEventList[0].newValue is "BAR" |
16 storage.setItem('FU', 'BAR') | 19 storage.setItem('FU', 'BAR') |
17 storage.setItem('a', '1') | 20 storage.setItem('a', '1') |
18 storage.setItem('b', '2') | 21 storage.setItem('b', '2') |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 PASS storageEventList[7].key is "" | 92 PASS storageEventList[7].key is "" |
90 PASS storageEventList[7].oldValue is null | 93 PASS storageEventList[7].oldValue is null |
91 PASS storageEventList[7].newValue is null | 94 PASS storageEventList[7].newValue is null |
92 | 95 |
93 | 96 |
94 PASS successfullyParsed is true | 97 PASS successfullyParsed is true |
95 | 98 |
96 TEST COMPLETE | 99 TEST COMPLETE |
97 | 100 |
98 | 101 |
OLD | NEW |