Revision 8f61f074b6fdebb9c1a0041fda1514d5748d68bd authored by moz-wptsync-bot on 15 March 2018, 23:08:40 UTC, committed by moz-wptsync-bot on 16 March 2018, 11:13:24 UTC
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1445740 gecko-commit: 83cf165404102d1d22070a2e22fe99ab2ea28b8f gecko-integration-branch: mozilla-inbound gecko-reviewers: smaug
1 parent 14b8462
event_case_sensitive.js
testStorages(function(storageString) {
async_test(function(t) {
assert_true(storageString in window, storageString + " exist");
var storage = window[storageString];
t.add_cleanup(function() { storage.clear() });
clearStorage(storageString, t.step_func(step0));
assert_equals(storage.length, 0, "storage.length");
function step0(msg)
{
storage.foo = "test";
runAfterNStorageEvents(t.step_func(step1), 1);
}
function step1(msg)
{
storageEventList = new Array();
storage.foo = "test";
runAfterNStorageEvents(t.step_func(step2), 0);
}
function step2(msg)
{
if(msg != undefined) {
assert_unreached(msg);
}
assert_equals(storageEventList.length, 0);
storage.foo = "TEST";
runAfterNStorageEvents(t.step_func(step3), 1);
}
function step3(msg)
{
if(msg != undefined) {
assert_unreached(msg);
}
assert_equals(storageEventList.length, 1);
t.done();
}
}, storageString + " storage events fire even when only the case of the value changes.");
});
Computing file changes ...