mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Draggable Tests: Grunted
This commit is contained in:
parent
e85402f553
commit
4a238046bf
@ -245,10 +245,10 @@ test("cancel, default, switching after initialization", function() {
|
|||||||
|
|
||||||
TestHelpers.draggable.testDrag(el, input, 50, 50, 0, 0);
|
TestHelpers.draggable.testDrag(el, input, 50, 50, 0, 0);
|
||||||
|
|
||||||
el.draggable('option', 'cancel', 'textarea' );
|
el.draggable("option", "cancel", "textarea" );
|
||||||
TestHelpers.draggable.testDrag(el, input, 50, 50, 50, 50);
|
TestHelpers.draggable.testDrag(el, input, 50, 50, 50, 50);
|
||||||
|
|
||||||
el.draggable('option', 'cancel', 'input' );
|
el.draggable("option", "cancel", "input" );
|
||||||
TestHelpers.draggable.testDrag(el, input, 50, 50, 0, 0);
|
TestHelpers.draggable.testDrag(el, input, 50, 50, 0, 0);
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -310,8 +310,7 @@ test("{ containment: 'parent' }, absolute", function() {
|
|||||||
test("containment, default, switching after initialization", function() {
|
test("containment, default, switching after initialization", function() {
|
||||||
expect( 2 );
|
expect( 2 );
|
||||||
|
|
||||||
var offsetAfter,
|
var el = $("#draggable1").draggable({ containment: false });
|
||||||
el = $("#draggable1").draggable({ containment: false });
|
|
||||||
|
|
||||||
TestHelpers.draggable.testDrag(el, el, -100, -100, -100, -100);
|
TestHelpers.draggable.testDrag(el, el, -100, -100, -100, -100);
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ TestHelpers.draggable = {
|
|||||||
|
|
||||||
},
|
},
|
||||||
trackMouseCss : function( el ) {
|
trackMouseCss : function( el ) {
|
||||||
el.on( "drag", function(e,ui) {
|
el.on( "drag", function() {
|
||||||
el.data( "last_dragged_cursor", $("body").css("cursor") );
|
el.data( "last_dragged_cursor", $("body").css("cursor") );
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user