Add tests to ensure IE8 properly assigns a class name in the Element constructor. [#529 state:resolved] (Riki Fridrich, Andrew Dupont)

This commit is contained in:
Andrew Dupont 2009-03-08 20:27:38 -05:00
parent fa12b00111
commit 8f697f3e85
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
* Add tests to ensure IE8 properly assigns a class name in the `Element` constructor. [#529 state:resolved] (Riki Fridrich, Andrew Dupont)
* Remove sniffing from `Element` when detecting broken `setAttribute` in IE. [#571 state:resolved] (kangax)
* Remove sniffing from `Element.update` branching in favor of feature detection. [#574 state:resolved] (kangax)

View File

@ -1071,6 +1071,12 @@ new Test.Unit.Runner({
Element.prototype.fooBar = Prototype.emptyFunction
this.assertRespondsTo('fooBar', new Element('div'));
}
elWithClassName = new Element('div', { 'className': 'firstClassName' });
this.assert(elWithClassName.hasClassName('firstClassName'));
elWithClassName = new Element('div', { 'class': 'firstClassName' });
this.assert(elWithClassName.hasClassName('firstClassName'));
},
testElementGetHeight: function() {