mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable: Added test for disabled
This commit is contained in:
parent
5f26d83c78
commit
b21904007f
@ -514,6 +514,23 @@ test( "cursorAt, switching after initialization", function() {
|
||||
|
||||
});
|
||||
|
||||
|
||||
test( "disabled", function() {
|
||||
|
||||
expect( 3 );
|
||||
|
||||
var el = $("#draggable1").draggable();
|
||||
|
||||
TestHelpers.draggable.shouldMove(el);
|
||||
|
||||
el.draggable( "option", "disabled", true );
|
||||
TestHelpers.draggable.shouldNotMove(el);
|
||||
|
||||
el.draggable( "option", "disabled", false );
|
||||
TestHelpers.draggable.shouldMove(el);
|
||||
|
||||
});
|
||||
|
||||
test("{ grid: [50, 50] }, relative", function() {
|
||||
expect( 2 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user