From 11d3a83749605473df669f4dd30339f42ea81004 Mon Sep 17 00:00:00 2001 From: Robert Schwanhold Date: Tue, 29 May 2018 11:32:30 +0200 Subject: [PATCH] changed test --- .../instance/testMenuWithSpellingAtTop.st | 8 +++----- .../methodProperties.json | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/Spellcheck-Tests.package/PluggableTextMorphPlusTests.class/instance/testMenuWithSpellingAtTop.st b/packages/Spellcheck-Tests.package/PluggableTextMorphPlusTests.class/instance/testMenuWithSpellingAtTop.st index c66e793..93e654c 100644 --- a/packages/Spellcheck-Tests.package/PluggableTextMorphPlusTests.class/instance/testMenuWithSpellingAtTop.st +++ b/packages/Spellcheck-Tests.package/PluggableTextMorphPlusTests.class/instance/testMenuWithSpellingAtTop.st @@ -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'). \ No newline at end of file diff --git a/packages/Spellcheck-Tests.package/PluggableTextMorphPlusTests.class/methodProperties.json b/packages/Spellcheck-Tests.package/PluggableTextMorphPlusTests.class/methodProperties.json index d33d736..8f694cc 100644 --- a/packages/Spellcheck-Tests.package/PluggableTextMorphPlusTests.class/methodProperties.json +++ b/packages/Spellcheck-Tests.package/PluggableTextMorphPlusTests.class/methodProperties.json @@ -3,4 +3,4 @@ }, "instance" : { "setUp" : "RS 5/27/2018 16:00:29", - "testMenuWithSpellingAtTop" : "RS 5/27/2018 16:51:49" } } + "testMenuWithSpellingAtTop" : "RS 5/29/2018 11:30:09" } }