| 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(step1)); | 7 clearStorage(storageString, t.step_func(step1)); |
| 8 assert_equals(storage.length, 0, "storage.length"); | 8 assert_equals(storage.length, 0, "storage.length"); |
| 9 | 9 |
| 10 function step1(msg) | 10 function step1(msg) |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 assert_equals(storageEventList.length, 8); | 97 assert_equals(storageEventList.length, 8); |
| 98 assert_equals(storageEventList[7].key, null); | 98 assert_equals(storageEventList[7].key, null); |
| 99 assert_equals(storageEventList[7].oldValue, null); | 99 assert_equals(storageEventList[7].oldValue, null); |
| 100 assert_equals(storageEventList[7].newValue, null); | 100 assert_equals(storageEventList[7].newValue, null); |
| 101 | 101 |
| 102 t.done(); | 102 t.done(); |
| 103 } | 103 } |
| 104 | 104 |
| 105 }, storageString + " mutations fire StorageEvents that are caught by the eve
nt listener set via window.onstorage."); | 105 }, storageString + " mutations fire StorageEvents that are caught by the eve
nt listener set via window.onstorage."); |
| 106 }); | 106 }); |
| OLD | NEW |