Permalink
Browse files

Button: fix #5295 button doesn't remove hover state if they are disab…

…led - unit test
  • Loading branch information...
1 parent fc9d099 commit 93b5815a676723de737c5cabbca0b43d56526816 @cgack committed Nov 11, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 tests/unit/button/button_tickets.js
@@ -5,6 +5,17 @@
module( "button: tickets" );
+test( "#5295 - button does not remove hoverstate if disabled" , function() {
+ expect( 1 );
+ var btn = $("#button").button();
+ btn.hover( function() {
+ btn.button( "disable" );
+ });
+ btn.trigger( "mouseenter" );
+ btn.trigger( "mouseleave" );
+ ok( !btn.is( ".ui-state-hover") );
+});
+
test( "#5946 - buttonset should ignore buttons that are not :visible", function() {
expect( 2 );
$( "#radio01" ).next().andSelf().hide();

0 comments on commit 93b5815

Please sign in to comment.