Enable spellchecker as default setting

The language should be determined by user's locale.
If it's not available in spellchecker, en-US is used.
This commit is contained in:
Yuya Ochiai
2017-05-03 20:30:23 +09:00
parent 07b2f8fc3b
commit c333f7b87b
3 changed files with 5 additions and 3 deletions

View File

@@ -208,11 +208,12 @@ describe('browser/settings.html', function desc() {
loadSettingsPage().
isExisting('#inputSpellChecker').then((existing) => existing.should.equal(true)).
scroll('#inputSpellChecker').
isSelected('#inputSpellChecker').then((selected) => selected.should.equal(true)).
click('#inputSpellChecker').
pause(700).
then(() => {
const config1 = JSON.parse(fs.readFileSync(env.configFilePath, 'utf-8'));
config1.useSpellChecker.should.equal(true);
config1.useSpellChecker.should.equal(false);
});
});
});