/*
* draggable_core.js
*/
(function( $ ) {
var relativeElement, absoluteElement;
module( "draggable: core", {
setup: function() {
relativeElement = $("
")
.addClass("ui-resizable-handle ui-resizable-w")
.append( $("
") )
);
var handle = $(".ui-resizable-w div"),
target = relativeElement.draggable().resizable({ handles: "all" });
// todo: fix resizable so it doesn't require a mouseover
handle.simulate("mouseover").simulate( "drag", { dx: -50 } );
equal( target.width(), 250, "compare width" );
// todo: fix resizable so it doesn't require a mouseover
handle.simulate("mouseover").simulate( "drag", { dx: 50 } );
equal( target.width(), 200, "compare width" );
});
})( jQuery );