var functionReturningObj = function(value) { return (function() { return value; }); };
test("attr(String)", function() {
- expect(30);
+ expect(31);
// This one sometimes fails randomly ?!
equals( jQuery('#text1').attr('value'), "Test", 'Check for value attribute' );
ok( jQuery("<div/>").attr("doesntexist") === undefined, "Make sure undefined is returned when no attribute is found." );
ok( jQuery().attr("doesntexist") === undefined, "Make sure undefined is returned when no element is there." );
+
+ equals( jQuery(document).attr("nodeName"), "#document", "attr works correctly on document nodes (bug #7451)." );
});
if ( !isLocal ) {
});
test("addClass(Function) with incoming value", function() {
- expect(41);
+ expect(45);
var div = jQuery("div"), old = div.map(function(){
return jQuery(this).attr("class");
});
test("removeClass(Function) with incoming value", function() {
- expect(41);
+ expect(45);
var $divs = jQuery('div').addClass("test"), old = $divs.map(function(){
return jQuery(this).attr("class");