Draggable: Added test for disabled

This commit is contained in:
Dave Stein 2013-01-15 19:42:03 -05:00
parent 5f26d83c78
commit b21904007f

View File

@ -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 );