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