Menu tests: Proper detection for absence of ui-state-disabled class.

This commit is contained in:
Scott González 2012-07-10 14:01:23 -04:00
parent 51c0878c41
commit 70c5cce84e

View File

@ -18,7 +18,7 @@ test( "{ disabled: true }", function() {
log(); log();
} }
}); });
ok( element.is( ".ui-state-disabled" ), "Missing ui-state-disabled class" ); ok( element.hasClass( "ui-state-disabled" ), "Missing ui-state-disabled class" );
log( "click", true ); log( "click", true );
click( element, "1" ); click( element, "1" );
log( "afterclick" ); log( "afterclick" );
@ -33,7 +33,7 @@ test( "{ disabled: false }", function() {
log(); log();
} }
}); });
ok( element.not( ".ui-state-disabled" ), "Has ui-state-disabled class" ); ok( !element.hasClass( "ui-state-disabled" ), "Has ui-state-disabled class" );
log( "click", true ); log( "click", true );
click( element, "1" ); click( element, "1" );
log( "afterclick" ); log( "afterclick" );