| 21 | | $output = '<ul class="radio_list"><li><input name="foo" type="radio" value="foo" id="foo_foo" /> <label for="foo_foo">bar</label></li>'. |
|---|
| 22 | | '<li><input name="foo" type="radio" value="foobar" id="foo_foobar" checked="checked" /> <label for="foo_foobar">foo</label></li></ul>'; |
|---|
| 23 | | $t->is($w->render('foo', 'foobar'), $output, '->render() renders a select tag with the value selected'); |
|---|
| | 21 | $output = '<ul class="radio_list">'. |
|---|
| | 22 | '<li><input name="foo" type="radio" value="foo" id="foo_foo" /> <label for="foo_foo">bar</label></li>'. |
|---|
| | 23 | '<li><input name="foo" type="radio" value="foobar" id="foo_foobar" checked="checked" /> <label for="foo_foobar">foo</label></li>'. |
|---|
| | 24 | '</ul>'; |
|---|
| | 25 | $t->is($w->render('foo', 'foobar'), $output, '->render() renders a radio tag with the value checked'); |
|---|
| | 26 | |
|---|
| | 27 | //regression for ticket #3528 |
|---|
| | 28 | $onChange = '<ul class="radio_list">'. |
|---|
| | 29 | '<li><input name="foo" type="radio" value="foo" id="foo_foo" onChange="alert(42)" />'. |
|---|
| | 30 | ' <label for="foo_foo">bar</label></li>'. |
|---|
| | 31 | '<li><input name="foo" type="radio" value="foobar" id="foo_foobar" checked="checked" onChange="alert(42)" />'. |
|---|
| | 32 | ' <label for="foo_foobar">foo</label></li>'. |
|---|
| | 33 | '</ul>'; |
|---|
| | 34 | $t->is($w->render('foo', 'foobar', array('onChange' => 'alert(42)')), $onChange, '->render() renders a radio tag using extra attributes'); |
|---|