Skip to content

Commit

Permalink
Add a couple of test cases to guard against issues with new Element.
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Oct 17, 2010
1 parent f71bb85 commit 6abe2a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit/dom_test.js
Expand Up @@ -1135,6 +1135,12 @@ new Test.Unit.Runner({

elWithClassName = new Element('div', { 'class': 'firstClassName' });
this.assert(elWithClassName.hasClassName('firstClassName'));

var radio = new Element('input', { type: 'radio', value: 'test' });
this.assert(radio.value === 'test', 'value of a dynamically-created radio button');

var radio2 = new Element('input', { type: 'radio', value: 'test2' });
this.assert(radio2.value === 'test2', 'value of a dynamically-created radio button');
},

testElementGetHeight: function() {
Expand Down

0 comments on commit 6abe2a6

Please sign in to comment.