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
No known key found for this signature in database
GPG key ID: A4931C09644C654B
3 changed files with 27 additions and 12 deletions

View file

@ -654,6 +654,7 @@
<script type="text/javascript" src="reliable_trigger_test.js"></script>
<script type="text/javascript" src="backup_test.js"></script>
<script type="text/javascript" src="i18n_test.js"></script>
<script type="text/javascript" src="spellcheck_test.js"></script>
<script type="text/javascript" src="fixtures.js"></script>
<script type="text/javascript" src="fixtures_test.js"></script>

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'));
});
});