Use Electron Spellchecker

This commit is contained in:
Ken Powers 2020-03-20 17:00:11 -04:00 committed by Scott Nonnenberg
parent 42152be4af
commit 4a8f5db0a4
15 changed files with 195 additions and 381 deletions

View file

@ -407,7 +407,6 @@
<script type="text/javascript" src="crypto_test.js"></script>
<script type="text/javascript" src="database_test.js"></script>
<script type="text/javascript" src="i18n_test.js"></script>
<script type="text/javascript" src="spellcheck_test.js"></script>
<!-- Comment out to turn off code coverage. Useful for getting real callstacks. -->
<!-- NOTE: blanket doesn't support modern syntax and will choke until we find a replacement. :0( -->

View file

@ -1,15 +0,0 @@
describe('spellChecker', () => {
it('should work', () => {
let result = null;
window.spellChecker.spellCheck(['correct'], answer => {
result = answer;
});
assert.deepEqual(result, []);
window.spellChecker.spellCheck(['fhqwgads'], answer => {
result = answer;
});
assert.deepEqual(result, ['fhqwgads']);
});
});