diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/requirements.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/requirements.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/requirements.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/requirements.js new file mode 100644 index 00000000..d9cf4172 --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/requirements.js @@ -0,0 +1,24 @@ +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("Installation",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" ); + +});
\ No newline at end of file |