Add spellcheck smoke test
Exposes the spellcheck provider as window.spellChecker, which allows it to be called from tests.
This commit is contained in:
parent
0ad35cc0e6
commit
33a82cc8e8
3 changed files with 27 additions and 12 deletions
10
test/spellcheck_test.js
Normal file
10
test/spellcheck_test.js
Normal 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'));
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue