mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
4e7407cd69
Ref #10119 Ref gh-1528
22 lines
660 B
JavaScript
22 lines
660 B
JavaScript
define( [
|
|
"jquery",
|
|
"ui/resizable"
|
|
], function( $ ) {
|
|
|
|
module( "resizable: methods" );
|
|
|
|
test( "disable", function( assert ) {
|
|
expect( 5 );
|
|
|
|
var element = $( "#resizable1" ).resizable({ disabled: false }),
|
|
chainable = element.resizable( "disable" );
|
|
|
|
assert.lacksClasses( element.resizable( "widget" ), "ui-state-disabled" );
|
|
ok( !element.resizable( "widget" ).attr( "aria-disabled" ), "element does not get aria-disabled" );
|
|
assert.hasClasses( element.resizable( "widget" ), "ui-resizable-disabled" );
|
|
equal( element.resizable( "option", "disabled" ), true, "disabled option setter" );
|
|
equal( chainable, element, "disable is chainable" );
|
|
});
|
|
|
|
} );
|