The Trunk: MorphicTests-pre.50.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: MorphicTests-pre.50.mcz

commits-2
Patrick Rein uploaded a new version of MorphicTests to project The Trunk:
http://source.squeak.org/trunk/MorphicTests-pre.50.mcz

==================== Summary ====================

Name: MorphicTests-pre.50
Author: pre
Time: 29 April 2019, 8:16:16.145145 pm
UUID: ac21cd61-1da9-5a47-9186-f3b430ce2218
Ancestors: MorphicTests-mt.49

Adds tests for the text morph for edit view which checks whether the right characters are filtered for editText: callbacks

=============== Diff against MorphicTests-mt.49 ===============

Item was added:
+ TestCase subclass: #TextMorphForEditViewTest
+ instanceVariableNames: 'morph'
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'MorphicTests-Text Support'!

Item was added:
+ ----- Method: TextMorphForEditViewTest>>setUp (in category 'running') -----
+ setUp
+
+ morph := TextMorphForEditView new!

Item was added:
+ ----- Method: TextMorphForEditViewTest>>testCharactersModifyingText (in category 'tests') -----
+ testCharactersModifyingText
+
+ {$a . $: . $+ . Character backspace . Character delete . $2 . Character space . Character tab .$ΓΌ } do: [:char |
+ self assert: (morph eventCharacterModifiesText: char)]
+ !

Item was added:
+ ----- Method: TextMorphForEditViewTest>>testCharactersNotModifyingText (in category 'tests') -----
+ testCharactersNotModifyingText
+
+ #(0 1 2 3) do: [:charCode |
+ self deny: (morph eventCharacterModifiesText: (Character value: charCode))]!