-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
8 changes: 3 additions & 5 deletions
8
...eck-Tests.package/PluggableTextMorphPlusTests.class/instance/testMenuWithSpellingAtTop.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
as yet unclassified | ||
testMenuWithSpellingAtTop | ||
| menu spellChecker selection topSuggestion | | ||
| menu | | ||
menu := pluggableTextMorphPlus getMenuWithSpellcheckingAtTop: (MenuMorph new defaultTarget: pluggableTextMorphPlus model). | ||
selection := pluggableTextMorphPlus textMorph editor selection string. | ||
spellChecker := SpellChecker new. | ||
topSuggestion := (spellChecker suggestionsFor: selection) first. | ||
self assert: ((menu items collect: [:item | item contents]) includes: topSuggestion). | ||
"We used the workspace to find out that a suggestion for the selected word is 'test'" | ||
self assert: ((menu items collect: [:item | item contents]) includes: 'test'). | ||
self assert: ((menu items collect: [:item | item contents]) includes: 'add to dictionary'). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters