Skip to content

Commit

Permalink
remove useless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyan11 committed Jul 19, 2024
1 parent d7d4d43 commit f40b8f1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/Toplo-Serialization/ToCheckbox.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ToCheckbox >> stonPostReferenceResolution [
self checked: aCheckValue.
self userData removeKey: #stonChecked ].
self userData at: #stonGroup ifPresent: [ :aGroup |
aGroup add: self.
aGroup register: self.
self userData removeKey: #stonGroup ]
]

Expand Down
59 changes: 15 additions & 44 deletions src/Toplo-Serialization/ToSerializerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -260,17 +260,17 @@ ToSerializerTest >> testToCheckbox4 [
button1 := ToCheckbox new
id: #button1;
labelText: 'button1';
addToGroup: group;
registerInGroup: group;
yourself.
button2 := ToCheckbox new
id: #button2;
labelText: 'button2';
addToGroup: group;
registerInGroup: group;
yourself.
button3 := ToCheckbox new
id: #button3;
labelText: 'button3';
addToGroup: group;
registerInGroup: group;
yourself.
pane addChildren: {
button1.
Expand All @@ -294,13 +294,17 @@ ToSerializerTest >> testToCheckbox4 [
assert: (element childAt: 2) group
equals: (element childAt: 3) group.
self
assert: (element childAt: 1) group buttons size equals: 3.
self
assert: ((element childAt: 1) group buttons includes: (element childAt: 1)).
self
assert: ((element childAt: 1) group buttons includes: (element childAt: 2)).
self
assert: ((element childAt: 1) group buttons includes: (element childAt: 3)). ]
assert: (element childAt: 1) group registeredCheckables size
equals: 3.
self assert:
((element childAt: 1) group registeredCheckables includes:
(element childAt: 1)).
self assert:
((element childAt: 1) group registeredCheckables includes:
(element childAt: 2)).
self assert:
((element childAt: 1) group registeredCheckables includes:
(element childAt: 3)) ]
]

{ #category : #tests }
Expand Down Expand Up @@ -344,39 +348,6 @@ ToSerializerTest >> testTooltip1 [
{ #category : #tests }
ToSerializerTest >> testTooltip2 [

| origin tooltip |
tooltip := BlElement new id: #tooltip; yourself.
origin := ToElement new tooltipContent: tooltip; yourself.

self
test: origin
on: [ :element | self assert: element hasTooltip.
element newTooltipWindowEvent: nil.
self assert: element hasOpenedTooltip.
self assert: ((element currentTooltipWindow childAt: 1 ) childAt: 1) id equals: #tooltip
]
]

{ #category : #tests }
ToSerializerTest >> testTooltip3 [

| origin |
origin := ToElement new
tooltipText: 'hello tooltip';
yourself.

self test: origin on: [ :element |
self assert: element hasTooltip.
element newTooltipWindowEvent: nil.
self assert: element hasOpenedTooltip.
self
assert: ((element currentTooltipWindow childAt: 1) childAt: 1) text asString
equals: 'hello tooltip' ]
]

{ #category : #tests }
ToSerializerTest >> testTooltip4 [

| origin |
origin := ToElement new
tooltipText: 'hello tooltip';
Expand All @@ -389,7 +360,7 @@ ToSerializerTest >> testTooltip4 [
]

{ #category : #tests }
ToSerializerTest >> testTooltip5 [
ToSerializerTest >> testTooltip3 [

| origin |
origin := ToElement new
Expand Down

0 comments on commit f40b8f1

Please sign in to comment.