Skip to content

Commit

Permalink
Removed .attr(removeClass) and .attr(each) tests as they don't really…
Browse files Browse the repository at this point in the history
… make sense.
  • Loading branch information
jeresig committed Dec 10, 2009
1 parent ecdcda8 commit 0ab118a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/unit/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ test("attr(String, Object)", function() {
});

test("attr(jquery_method)", function(){
expect(10);
expect(8);

var $elem = jQuery("<div />"),
elem = $elem[0];
Expand All @@ -199,21 +199,12 @@ test("attr(jquery_method)", function(){
$elem.attr('addClass', 'css');
equals( elem.className, 'css', 'attr(addClass)');

$elem.attr('removeClass', 'css');
equals( jQuery.trim(elem.className), '', 'attr(removeClass)');

$elem.attr('css', {color:'red'});
ok( /^(#ff0000|red)$/i.test(elem.style.color), 'attr(css)');

$elem.attr('height', 10);
equals( elem.style.height, '10px', 'attr(height)');

$elem.attr('each', function(){
return function(){
ok(true, 'attr(each)');
};
});

// Multiple attributes

$elem.attr({
Expand Down

0 comments on commit 0ab118a

Please sign in to comment.