aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/button/button_options.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/button/button_options.js')
-rw-r--r--tests/unit/button/button_options.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit/button/button_options.js b/tests/unit/button/button_options.js
index eeb6e5527..e1931a54e 100644
--- a/tests/unit/button/button_options.js
+++ b/tests/unit/button/button_options.js
@@ -103,4 +103,15 @@ test("icons", function() {
$("#button").button("destroy");
});
+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") );
+});
+
})(jQuery);