diff options
author | 2017-05-04 07:48:42 -0400 | |
---|---|---|
committer | 2017-05-04 12:28:17 -0400 | |
commit | b54df0ddd0c6a0372327c5aa3668e5a6458fcd64 (patch) | |
tree | e69cfa9b314a801bd187cf0145d1d4306436229c /ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/method.js | |
parent | 39d1e62c84041831bfc52cca73b5ed5efaf57d27 (diff) |
[PORTAL-7] Rebase
This rebasing includes common libraries and common overlays projects
abstraction of components
Change-Id: I9a24a338665c7cd058978e8636bc412d9e2fdce8
Signed-off-by: st782s <statta@research.att.com>
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/method.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/method.js | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/method.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/method.js deleted file mode 100644 index d6b4a514..00000000 --- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/method.js +++ /dev/null @@ -1,64 +0,0 @@ -module("Drag Method"); - -$.each(['init','start','','end'],function( i, type ){ - - test('"drag'+ type +'"',function(){ - - expect( 27 ); - - // make sure the event handler gets bound to the element - var $elem = $('<div />'), - elem = $elem[0], - count = 0, - fn = function(){ - count += 1; - }, - opts = { - which: 99, - distance: 88, - not: 77, - handle: 66, - relative: 55, - drop: 44, - click: 33 - }, - def = $.event.special[ 'drag'+ type ].defaults, - data; - - ok( $elem.drag( type, fn )[0] == elem, '.drag('+( type ? '"'+ type +'",' : '' )+' fn )' ); - ok( data = $.data( elem, $.event.special.drag.datakey ), "drag data exists" ); - ok( $.data( elem, "events" ), "event data exists" ); - ok( $.data( elem, "events" )[ 'drag'+type ][0], '"drag'+ type +'" event handler added' ); - - ok( data.which == def.which, '"which" default stored' ); - ok( data.distance == def.distance, '"distance" default stored' ); - ok( data.not == def.not, '"not" default stored' ); - ok( data.handle == def.handle, '"handle" default stored' ); - ok( data.relative == def.relative, '"relative" default stored' ); - ok( data.drop == def.drop, '"drop" default stored' ); - ok( data.click == def.click, '"click" default stored' ); - - ok( $elem.drag( type )[0] == elem, '.drag('+( type ? '"'+ type +'"' : '' )+')' ); - ok( count == 1, "handler was triggered"); - - ok( $elem.unbind( "drag"+ type )[0] == elem, '.unbind("drag'+ type +'")' ); - ok( !$.data( elem, "events" ), "event data removed" ); - ok( !$.data( elem, $.event.special.drag.datakey ), "drag data removed" ); - - ok( $elem.drag( type, fn, opts )[0] == elem, '.drag('+( type ? '"'+ type +'",' : '' )+' fn, opts )' ); - ok( data = $.data( elem, $.event.special.drag.datakey ), "drag data exists" ); - ok( $.data( elem, "events" ), "event data exists" ); - ok( $.data( elem, "events" )[ 'drag'+type ][0], '"drag'+ type +'" event handler added' ); - - ok( data.which == opts.which, '"which" option stored' ); - ok( data.distance == opts.distance, '"distance" option stored' ); - ok( data.not == opts.not, '"not" option stored' ); - ok( data.handle == opts.handle, '"handle" option stored' ); - ok( data.relative == opts.relative, '"relative" option stored' ); - ok( data.drop == opts.drop, '"drop" option stored' ); - ok( data.click == opts.click, '"click" option stored' ); - - $elem.remove(); - - }); -});
\ No newline at end of file |