]> source.dussan.org Git - jquery.git/commitdiff
Removed .attr(removeClass) and .attr(each) tests as they don't really make sense.
authorJohn Resig <jeresig@gmail.com>
Thu, 10 Dec 2009 22:40:11 +0000 (14:40 -0800)
committerJohn Resig <jeresig@gmail.com>
Thu, 10 Dec 2009 22:40:11 +0000 (14:40 -0800)
test/unit/attributes.js

index 6b18f99d06cac628a2496e89889b3919c7f2d9b2..67077b9b4c14799a8eb88d9a00e02cbd7e5d3877 100644 (file)
@@ -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];
@@ -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({