| OLD | NEW |
| 1 This is a test to make sure DOM Storage mutations fire StorageEvents that are ca
ught by the event listener specified as an attribute on the body. | 1 This is a test to make sure DOM Storage mutations fire StorageEvents that are ca
ught by the event listener specified as an attribute on the body. |
| 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 iframe.onload = step1 | 9 iframe.onload = step1 |
| 10 iframe.src = 'resources/body-event-handler.html' | 10 iframe.src = 'resources/body-event-handler.html' |
| 11 PASS successfullyParsed is true | |
| 12 | |
| 13 TEST COMPLETE | |
| 14 Reset storage event list | 11 Reset storage event list |
| 15 storageEventList = new Array() | 12 storageEventList = new Array() |
| 16 storage.setItem('FOO', 'BAR') | 13 storage.setItem('FOO', 'BAR') |
| 17 PASS storageEventList.length is 1 | 14 PASS storageEventList.length is 1 |
| 18 PASS storageEventList[0].key is "FOO" | 15 PASS storageEventList[0].key is "FOO" |
| 19 PASS storageEventList[0].oldValue is null | 16 PASS storageEventList[0].oldValue is null |
| 20 PASS storageEventList[0].newValue is "BAR" | 17 PASS storageEventList[0].newValue is "BAR" |
| 21 storage.setItem('FU', 'BAR') | 18 storage.setItem('FU', 'BAR') |
| 22 storage.setItem('a', '1') | 19 storage.setItem('a', '1') |
| 23 storage.setItem('b', '2') | 20 storage.setItem('b', '2') |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 storage.removeItem('FU') | 86 storage.removeItem('FU') |
| 90 PASS storageEventList.length is 7 | 87 PASS storageEventList.length is 7 |
| 91 PASS storageEventList[6].key is "FU" | 88 PASS storageEventList[6].key is "FU" |
| 92 PASS storageEventList[6].oldValue is "BAR" | 89 PASS storageEventList[6].oldValue is "BAR" |
| 93 PASS storageEventList[6].newValue is null | 90 PASS storageEventList[6].newValue is null |
| 94 storage.clear() | 91 storage.clear() |
| 95 PASS storageEventList.length is 8 | 92 PASS storageEventList.length is 8 |
| 96 PASS storageEventList[7].key is null | 93 PASS storageEventList[7].key is null |
| 97 PASS storageEventList[7].oldValue is null | 94 PASS storageEventList[7].oldValue is null |
| 98 PASS storageEventList[7].newValue is null | 95 PASS storageEventList[7].newValue is null |
| 99 | |
| 100 | |
| 101 PASS successfullyParsed is true | 96 PASS successfullyParsed is true |
| 102 | 97 |
| 103 TEST COMPLETE | 98 TEST COMPLETE |
| 104 | 99 |
| 105 | |
| OLD | NEW |