Save slots: several networks per browser, one per window, with a cross-window guard
This commit is contained in:
parent
39ef7c13bb
commit
da8150b7c4
29 changed files with 595 additions and 124 deletions
|
|
@ -27,7 +27,7 @@ test('changing the dropdown in Settings switches language and keeps the game', (
|
|||
const { ev, errors } = load();
|
||||
ev("ACT.start({});dayTick();ACT.settings();const s=document.getElementById('langSel');s.value='fr';s.dispatchEvent(new Event('change',{bubbles:true}))");
|
||||
assert.equal(ev("localStorage.getItem('sot-lang')"), 'fr');
|
||||
assert.ok(ev("localStorage.getItem('sot-save-v1')"), 'saved before reloading');
|
||||
assert.ok(ev("slotRaw(UI.slot)"), 'saved before reloading');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue