Skip to content

Add serialization and tests#27

Merged
LANDAISB merged 2 commits into
devStagefrom
devStage_addTests
Jun 5, 2026
Merged

Add serialization and tests#27
LANDAISB merged 2 commits into
devStagefrom
devStage_addTests

Conversation

@MagueresMathieu
Copy link
Copy Markdown
Collaborator

Add unit tests and serialization for some properties

@MagueresMathieu MagueresMathieu requested a review from LANDAISB May 28, 2026 13:30
yourself.
self test: origin on: [ :element |
self assert: element useScrollbar equals: true.
self assert: element useInfiniteLayout equals: true.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use assert: (no need equals: true)

]

{ #category : #tests }
ToSerializerTest >> testToRadioButton1 [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is too much tests for only 2 parameters (1,2,3,4). You should keep only tests radioButton 2,3,4,5 (rename theme 1,2,3,4 of course)

text := (element userData at: #placeholder) children first.
self
assert: (BlTextNonPrintableCharacterPrinter print: text text)
equals: 'Enter text...'. self assert: element useScrollbar equals: true ]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem, no need equals: true. Just use assert:

withRowNumbers;
yourself.
self test: origin on: [ :element |
self assert: element useScrollbar equals: true.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem. remove equals:true

@LANDAISB LANDAISB merged commit 94e9c2e into devStage Jun 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants