aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/resizable/resizable_methods.js
blob: abb8951f930285c9cb4d7b9a65e186fc042c9712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * resizable_methods.js
 */
(function($) {

module( "resizable: methods" );

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" );
});

})(jQuery);