Add spellcheck smoke test

Exposes the spellcheck provider as window.spellChecker, which allows it to be
called from tests.
This commit is contained in:
lilia
2017-05-18 12:34:09 -07:00
committed by Scott Nonnenberg
parent 0ad35cc0e6
commit 33a82cc8e8
3 changed files with 27 additions and 12 deletions

10
test/spellcheck_test.js Normal file
View File

@@ -0,0 +1,10 @@
/*
* vim: ts=4:sw=4:expandtab
*/
describe('spellChecker', function() {
it('should work', function() {
assert(window.spellChecker.spellCheck('correct'));
assert(!window.spellChecker.spellCheck('fhqwgads'));
});
});