3 module( "droppable: events" );
5 test( "droppable destruction/recreation on drop event", function() {
11 var element = $( this ),
12 newDroppable = $( "<div>" )
13 .css({ width: 100, height: 100 })
15 element.after( newDroppable );
17 newDroppable.droppable( config );
21 draggable = $( "#draggable1" ).draggable(),
22 droppable1 = $( "#droppable1" ).droppable( config ),
23 droppable2 = $( "#droppable2" ).droppable( config ),
25 droppableOffset = droppable1.offset(),
26 draggableOffset = draggable.offset(),
27 dx = droppableOffset.left - draggableOffset.left,
28 dy = droppableOffset.top - draggableOffset.top;
30 draggable.simulate( "drag", {
35 ok( !droppable2.hasClass( "active" ), "subsequent droppable no longer active" );
40 // todo: comment the following in when ready to actually test
42 test("activate", function() {
43 ok(false, 'missing test - untested code is broken code');
46 test("deactivate", function() {
47 ok(false, 'missing test - untested code is broken code');
50 test("over", function() {
51 ok(false, 'missing test - untested code is broken code');
54 test("out", function() {
55 ok(false, 'missing test - untested code is broken code');
58 test("drop", function() {
59 ok(false, 'missing test - untested code is broken code');