2009-02-02 14:36:08 +00:00
|
|
|
/*
|
|
|
|
* resizable_methods.js
|
|
|
|
*/
|
|
|
|
(function($) {
|
|
|
|
|
2013-03-14 23:08:21 +00:00
|
|
|
module( "resizable: methods" );
|
2009-02-02 14:36:08 +00:00
|
|
|
|
2013-03-14 23:08:21 +00:00
|
|
|
test( "disable", function() {
|
|
|
|
expect( 5 );
|
|
|
|
|
|
|
|
var element = $( "#resizable1" ).resizable({ disabled: false }),
|
|
|
|
chainable = element.resizable( "disable" );
|
|
|
|
|
|
|
|
ok( !element.resizable( "widget" ).hasClass( "ui-state-disabled" ), "element does not get ui-state-disabled" );
|
|
|
|
ok( !element.resizable( "widget" ).attr( "aria-disabled" ), "element does not get aria-disabled" );
|
|
|
|
ok( element.resizable( "widget" ).hasClass( "ui-resizable-disabled" ), "element gets ui-resizable-disabled" );
|
|
|
|
equal( element.resizable( "option", "disabled" ), true, "disabled option setter" );
|
|
|
|
equal( chainable, element, "disable is chainable" );
|
|
|
|
});
|
2009-02-02 14:36:08 +00:00
|
|
|
|
|
|
|
})(jQuery);
|