You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
728 B
23 lines
728 B
5 years ago
|
define( [
|
||
|
"qunit",
|
||
|
"jquery",
|
||
|
"ui/widgets/resizable"
|
||
|
], function( QUnit, $ ) {
|
||
|
|
||
|
QUnit.module( "resizable: methods" );
|
||
|
|
||
|
QUnit.test( "disable", function( assert ) {
|
||
|
assert.expect( 5 );
|
||
|
|
||
|
var element = $( "#resizable1" ).resizable( { disabled: false } ),
|
||
|
chainable = element.resizable( "disable" );
|
||
|
|
||
|
assert.lacksClasses( element.resizable( "widget" ), "ui-state-disabled" );
|
||
|
assert.ok( !element.resizable( "widget" ).attr( "aria-disabled" ), "element does not get aria-disabled" );
|
||
|
assert.hasClasses( element.resizable( "widget" ), "ui-resizable-disabled" );
|
||
|
assert.equal( element.resizable( "option", "disabled" ), true, "disabled option setter" );
|
||
|
assert.equal( chainable, element, "disable is chainable" );
|
||
|
} );
|
||
|
|
||
|
} );
|