diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/requirements.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/requirements.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/requirements.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/requirements.js new file mode 100644 index 00000000..697d2032 --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/requirements.js @@ -0,0 +1,37 @@ +module("Requirements"); + +test("jQuery",function(){ + + expect( 2 ); + + // make sure the right jquery is included + ok( window.jQuery, "jQuery exists" ); + ok( parseFloat( jQuery([]).jquery ) >= 1.4, "jQuery version is 1.4 or greater" ); +}); + +test("$.event.special.drag",function(){ + + expect( 5 ); + + // make sure the event interface is complete + ok( jQuery.event.special.draginit, '"draginit" special event is defined' ); + ok( jQuery.event.special.dragstart, '"dragstart" special event is defined' ); + ok( jQuery.event.special.drag, '"drag" special event is defined' ); + ok( jQuery.event.special.dragend, '"dragend" special event is defined' ); + ok( jQuery([]).drag, "$.fn.drag method is defined" ); + +}); + +test("Installation",function(){ + + expect( 6 ); + + // make sure the event interface is complete + ok( jQuery.event.special.dropinit, '"dropinit" special event is defined' ); + ok( jQuery.event.special.dropstart, '"dropstart" special event is defined' ); + ok( jQuery.event.special.drop, '"drop" special event is defined' ); + ok( jQuery.event.special.dropend, '"dropend" special event is defined' ); + ok( jQuery([]).drop, '$.fn.drop method is defined' ); + ok( jQuery.drop, '$.drop method is defined' ); + +});
\ No newline at end of file |