summaryrefslogtreecommitdiffstats
path: root/apps/it/static/js/ui/tests/unit/droppable/droppable_events.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/it/static/js/ui/tests/unit/droppable/droppable_events.js')
-rw-r--r--apps/it/static/js/ui/tests/unit/droppable/droppable_events.js63
1 files changed, 0 insertions, 63 deletions
diff --git a/apps/it/static/js/ui/tests/unit/droppable/droppable_events.js b/apps/it/static/js/ui/tests/unit/droppable/droppable_events.js
deleted file mode 100644
index 4b8fe5a..0000000
--- a/apps/it/static/js/ui/tests/unit/droppable/droppable_events.js
+++ /dev/null
@@ -1,63 +0,0 @@
-(function( $ ) {
-
-module( "droppable: events" );
-
-test( "droppable destruction/recreation on drop event", function() {
- expect( 1 );
-
- var config = {
- activeClass: "active",
- drop: function() {
- var element = $( this ),
- newDroppable = $( "<div>" )
- .css({ width: 100, height: 100 })
- .text( "Droppable" );
- element.after( newDroppable );
- element.remove();
- newDroppable.droppable( config );
- }
- },
-
- draggable = $( "#draggable1" ).draggable(),
- droppable1 = $( "#droppable1" ).droppable( config ),
- droppable2 = $( "#droppable2" ).droppable( config ),
-
- droppableOffset = droppable1.offset(),
- draggableOffset = draggable.offset(),
- dx = droppableOffset.left - draggableOffset.left,
- dy = droppableOffset.top - draggableOffset.top;
-
- draggable.simulate( "drag", {
- dx: dx,
- dy: dy
- });
-
- ok( !droppable2.hasClass( "active" ), "subsequent droppable no longer active" );
-});
-
-
-
-// todo: comment the following in when ready to actually test
-/*
-test("activate", function() {
- ok(false, 'missing test - untested code is broken code');
-});
-
-test("deactivate", function() {
- ok(false, 'missing test - untested code is broken code');
-});
-
-test("over", function() {
- ok(false, 'missing test - untested code is broken code');
-});
-
-test("out", function() {
- ok(false, 'missing test - untested code is broken code');
-});
-
-test("drop", function() {
- ok(false, 'missing test - untested code is broken code');
-});
-*/
-
-})( jQuery );