@@ -1173,7 +1173,7 @@ QUnit.test( "select.val(space characters) (gh-2978)", function( assert ) {
11731173} ) ;
11741174
11751175var testAddClass = function ( valueObj , assert ) {
1176- assert . expect ( 9 ) ;
1176+ assert . expect ( 7 ) ;
11771177
11781178 var pass , j , i ,
11791179 div = jQuery ( "#qunit-fixture div" ) ;
@@ -1193,13 +1193,6 @@ var testAddClass = function( valueObj, assert ) {
11931193
11941194 div = jQuery ( "<div/>" ) ;
11951195
1196- div . addClass ( valueObj ( "test" ) ) ;
1197- assert . equal ( div . attr ( "class" ) , "test" , "Make sure there's no extra whitespace." ) ;
1198-
1199- div . attr ( "class" , " foo" ) ;
1200- div . addClass ( valueObj ( "test" ) ) ;
1201- assert . equal ( div . attr ( "class" ) , "foo test" , "Make sure there's no extra whitespace." ) ;
1202-
12031196 div . attr ( "class" , "foo" ) ;
12041197 div . addClass ( valueObj ( "bar baz" ) ) ;
12051198 assert . equal ( div . attr ( "class" ) , "foo bar baz" , "Make sure there isn't too much trimming." ) ;
@@ -1251,7 +1244,7 @@ QUnit.test( "addClass(Function) with incoming value", function( assert ) {
12511244} ) ;
12521245
12531246var testRemoveClass = function ( valueObj , assert ) {
1254- assert . expect ( 8 ) ;
1247+ assert . expect ( 6 ) ;
12551248
12561249 var $set = jQuery ( "#qunit-fixture div" ) ,
12571250 div = document . createElement ( "div" ) ;
@@ -1277,14 +1270,8 @@ var testRemoveClass = function( valueObj, assert ) {
12771270 $set . removeClass ( valueObj ( "asdf" ) ) ;
12781271 assert . ok ( ! $set . hasClass ( "asdf" ) , "Check node,textnode,comment for removeClass" ) ;
12791272
1280- jQuery ( div ) . removeClass ( valueObj ( "foo" ) ) ;
1281- assert . strictEqual ( jQuery ( div ) . attr ( "class" ) , undefined , "removeClass doesn't create a class attribute" ) ;
1282-
12831273 div . className = " test foo " ;
12841274
1285- jQuery ( div ) . removeClass ( valueObj ( "foo" ) ) ;
1286- assert . equal ( div . className , "test" , "Make sure remaining className is trimmed." ) ;
1287-
12881275 div . className = " test " ;
12891276
12901277 jQuery ( div ) . removeClass ( valueObj ( "test" ) ) ;
0 commit comments