| OLD | NEW |
| 1 testStorages(function(storageString) { | 1 testStorages(function(storageString) { |
| 2 async_test(function(t) { | 2 async_test(function(t) { |
| 3 assert_true(storageString in window, storageString + " exist"); | 3 assert_true(storageString in window, storageString + " exist"); |
| 4 var storage = window[storageString]; | 4 var storage = window[storageString]; |
| 5 t.add_cleanup(function() { storage.clear() }); | 5 t.add_cleanup(function() { storage.clear() }); |
| 6 | 6 |
| 7 clearStorage(storageString, t.step_func(step0)); | 7 clearStorage(storageString, t.step_func(step0)); |
| 8 assert_equals(storage.length, 0, "storage.length"); | 8 assert_equals(storage.length, 0, "storage.length"); |
| 9 | 9 |
| 10 function step0(msg) | 10 function step0(msg) |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 assert_equals(storageEventList.length, 8); | 106 assert_equals(storageEventList.length, 8); |
| 107 assert_equals(storageEventList[7].key, null); | 107 assert_equals(storageEventList[7].key, null); |
| 108 assert_equals(storageEventList[7].oldValue, null); | 108 assert_equals(storageEventList[7].oldValue, null); |
| 109 assert_equals(storageEventList[7].newValue, null); | 109 assert_equals(storageEventList[7].newValue, null); |
| 110 | 110 |
| 111 t.done(); | 111 t.done(); |
| 112 } | 112 } |
| 113 | 113 |
| 114 }, storageString + " mutations fire StorageEvents that are caught by the eve
nt listener attached via setattribute."); | 114 }, storageString + " mutations fire StorageEvents that are caught by the eve
nt listener attached via setattribute."); |
| 115 }); | 115 }); |
| OLD | NEW |