Skip to content

Commit 6abe2a6

Browse files
Add a couple of test cases to guard against issues with new Element.
1 parent f71bb85 commit 6abe2a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/unit/dom_test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,12 @@ new Test.Unit.Runner({
11351135

11361136
elWithClassName = new Element('div', { 'class': 'firstClassName' });
11371137
this.assert(elWithClassName.hasClassName('firstClassName'));
1138+
1139+
var radio = new Element('input', { type: 'radio', value: 'test' });
1140+
this.assert(radio.value === 'test', 'value of a dynamically-created radio button');
1141+
1142+
var radio2 = new Element('input', { type: 'radio', value: 'test2' });
1143+
this.assert(radio2.value === 'test2', 'value of a dynamically-created radio button');
11381144
},
11391145

11401146
testElementGetHeight: function() {

0 commit comments

Comments
 (0)