You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here we specify that clicking the button should add an element to the list.
55
-
The message ==launchConfigurations== is returning the list of configurations exposed by the launcher.
56
-
Therefore we store the number of list items, then we access the add button of the presenter (here named image)
57
-
and we click this button sending the message ==click==.
58
-
And we verify that the length of the list has increased by one.
70
+
71
+
!!!! Spec user test 2: when selecting a new item in the tree presenter the text presenter and the morph should change
72
+
73
+
The tree presenter shows a tree of classes.
74
+
When a class of the tree presenter is selected, the text presenter should change according to the definition of the new selected class.
75
+
The morph must change as well.
59
76
60
77
[[[
61
-
testClickAddButtonCreatesNewLaunchConfiguration
62
-
63
-
| old |
64
-
old := image launchConfigurations size.
65
-
editor addButton click.
66
-
self assert: image launchConfigurations size equals: old + 1
78
+
testSelectItemOnTreePresenter
79
+
80
+
"As we have initialized the tree with Object as its roots. The class OrderedCollection is a subclass of Object. We would simulate that a user selectes OrderedCollection from the tree presenter."
81
+
82
+
spApplication := ClassVisualizerPresenter on: Object.
!!!! Spec user test 4: the text presenter should not be editable
86
115
87
-
!!!! Spec user test 3: checking list item displayed value
88
-
Changing values in the form should change the objects in the list.
89
-
This test selects the second item of the list so that the form displays the values
90
-
of such item.
91
-
Then the name displayed in the form editor is changed to a new text.
92
-
And using the message ==displayValueAt:==, it verifies that the displayed value of a given list item (here the second 2, the currently displayed in the form)
93
-
is actually the new entered text.
116
+
For this application, we only want that the text presenter shows the class definition.
0 commit comments