Skip to content
Permalink
Browse files

22796 Fix testResettingTheSelection

- do not use shouldnt:raise: in  test method #testResettingTheSelection

https://pharo.fogbugz.com/f/cases/22796/Fix-testResettingTheSelection
  • Loading branch information
astares committed Dec 16, 2018
1 parent 389dabb commit 38e339f11a4648cc8da741ef0fb6f792f4f034bb
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/Glamour-Tests-Rubric/GLMRubricTextMorphicTest.class.st
@@ -156,11 +156,12 @@ GLMRubricTextMorphicTest >> testPastingUpdatesTextPort [
{ #category : #tests }
GLMRubricTextMorphicTest >> testResettingTheSelection [
| composite textPresentation |
composite := GLMCompositePresentation new with: [ :a | a text display: '123456789' ].
composite := GLMCompositePresentation new
with: [ :a | a text display: '123456789' ].
window := composite openOn: 4.
textPresentation := composite presentations first.
textPresentation selectionInterval: (2 to: 5).
self shouldnt: [textPresentation selectionInterval: nil] raise: Error
textPresentation selectionInterval: nil
]

{ #category : #tests }

0 comments on commit 38e339f

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