-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from hpi-swa-teaching/US60
auto completion can be toggled on and off
- Loading branch information
Showing
7 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
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
5 changes: 5 additions & 0 deletions
5
...RichTextEditing-Tests.package/RichTextEditorTests.class/instance/disableAutocompletion.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
utilities | ||
disableAutocompletion | ||
|
||
autocompletionPreference := RichTextEditorModel autocompletion. | ||
RichTextEditorModel autocompletion: false |
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
4 changes: 4 additions & 0 deletions
4
.../RichTextEditing-Tests.package/RichTextEditorTests.class/instance/stringToAutocomplete.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
constants | ||
stringToAutocomplete | ||
|
||
^ 'Morph' |
7 changes: 7 additions & 0 deletions
7
...itorTests.class/instance/testUS60DisablingAutocompletionDoesNotOpenAllowAutocompletion.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
acceptance-tests | ||
testUS60DisablingAutocompletionDoesNotOpenAllowAutocompletion | ||
|
||
self disableAutocompletion. | ||
self enterStringOntoTextField: self stringToAutocomplete. | ||
self should: [self editorModel completionController isAutocompletable] raise: MessageNotUnderstood. | ||
self restoreAutocompletion |
7 changes: 7 additions & 0 deletions
7
.../RichTextEditorTests.class/instance/testUS60EnablingAutocompletionAllowsAutocompletion.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
acceptance-tests | ||
testUS60EnablingAutocompletionAllowsAutocompletion | ||
|
||
self enableAutocompletion. | ||
self enterStringOntoTextField: self stringToAutocomplete. | ||
self assert: (self editorModel completionController isAutocompletable). | ||
self restoreAutocompletion |
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