Added RadioButtonElementTest
This commit is contained in:
parent
a038570d92
commit
7d4c574343
|
@ -0,0 +1,30 @@
|
|||
ElementTest subclass: RadioButtonElementTest [
|
||||
|
||||
<comment: nil>
|
||||
<category: 'Iliad-Tests-Elements'>
|
||||
|
||||
setUp [
|
||||
e := RadioButtonElement new
|
||||
]
|
||||
|
||||
testBeSelected [
|
||||
e beSelected.
|
||||
self shouldHaveAttribute: #checked value: 'checked'
|
||||
]
|
||||
|
||||
testBeforePrintHtml [
|
||||
e beforePrintHtml.
|
||||
self shouldHaveAttribute: 'type' value: 'radio'
|
||||
]
|
||||
|
||||
testSelected [
|
||||
e selected: true.
|
||||
self shouldHaveAttribute: #checked value: 'checked'
|
||||
]
|
||||
|
||||
testValue [
|
||||
e value: 'foo'.
|
||||
self shouldHaveAttribute: 'value' value: 'foo'
|
||||
]
|
||||
]
|
||||
|
Reference in New Issue