Draggable Tests: Grunted

This commit is contained in:
Dave Stein 2013-01-15 18:57:13 -05:00
parent e85402f553
commit 4a238046bf
2 changed files with 4 additions and 5 deletions

View File

@ -245,10 +245,10 @@ test("cancel, default, switching after initialization", function() {
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);
el.draggable('option', 'cancel', 'input' );
el.draggable("option", "cancel", "input" );
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() {
expect( 2 );
var offsetAfter,
el = $("#draggable1").draggable({ containment: false });
var el = $("#draggable1").draggable({ containment: false });
TestHelpers.draggable.testDrag(el, el, -100, -100, -100, -100);

View File

@ -60,7 +60,7 @@ TestHelpers.draggable = {
},
trackMouseCss : function( el ) {
el.on( "drag", function(e,ui) {
el.on( "drag", function() {
el.data( "last_dragged_cursor", $("body").css("cursor") );
});
},