Skip to content
Permalink
Browse files

Merge pull request #707 from jecisc/693-Add-the-method-clearContent-i…

…n-the-class-SpAbstractTextPresenter

693-Add-the-method-clearContent-in-the-class-SpAbstractTextPresenter
  • Loading branch information...
jecisc committed Aug 12, 2019
2 parents b28bde5 + 0504e7a commit 16a842d41eb216acb73f7e64ceb5a1f49ceac468
Showing with 13 additions and 0 deletions.
  1. +5 −0 src/Spec2-Core/SpAbstractTextPresenter.class.st
  2. +8 −0 src/Spec2-Tests/SpTextPresenterTest.class.st
@@ -95,6 +95,11 @@ SpAbstractTextPresenter >> autoAccept: aBoolean [
autoAccept := aBoolean
]

{ #category : #api }
SpAbstractTextPresenter >> clearContent [
self text: ''
]

{ #category : #api }
SpAbstractTextPresenter >> clearSelection [
" <api: #do>"
@@ -14,6 +14,14 @@ SpTextPresenterTest >> initializationText [
presenter text: 'Text for tests.'
]

{ #category : #tests }
SpTextPresenterTest >> testClearContent [
self initializationText.
self denyEmpty: presenter text.
presenter clearContent.
self assertEmpty: presenter text
]

{ #category : #tests }
SpTextPresenterTest >> testClearSelection [
self initializationText.

0 comments on commit 16a842d

Please sign in to comment.
You can’t perform that action at this time.