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.drop/test/live.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.drop/test/live.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/live.js | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/live.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/live.js deleted file mode 100644 index 5e30130f..00000000 --- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/live.js +++ /dev/null @@ -1,60 +0,0 @@ -module("Live Delegation"); - -$.each(["dropinit","dropstart","drop","dropend"],function( i, type ){ - - test('"'+ type+'"',function(){ - - expect( i ? 5 : 1 ); - - if ( !i ){ - ok( true, 'Not supported for this event type.'); - return; - } - - // set up the delegation - $('.drop').live( type, function( event ){ - count += 1; - equals( this, $drop[0], event.type+" target" ); - }); - // local refs - var count = 0, - // add a div to test the delegation - $drop = $('<div class="drop" />') - .css({ - position: 'absolute', - top: 0, left: 0, - height: 100, width: 100 - }) - .appendTo( document.body ), - // add a dragger - $drag = $('<div class="drag" />') - .css({ - position: 'absolute', - top: 0, left: 0, - height: 100, width: 100 - }) - .appendTo( document.body ) - .drag(function(){ }); - - // check triggering of the event handlers - ok( $drop.trigger( type ), '.trigger("'+ type +'")'); - equals( count, 1, "event was triggered"); - - // simulate a complete drag - $drag - .fire("mousedown",{ pageX:50, pageY:50 }) - .fire("mousemove",{ pageX:51, pageY:51 }) - .fire("mouseup",{ pageX:51, pageY:51 }) - .fire("click",{ pageX:51, pageY:51 }); - - // check the event handler counts - equals( count, 2, "event was delegated"); - - // remove delegation - $('.drop').die( type ); - $drag.remove(); - $drop.remove(); - - }); - -});
\ No newline at end of file |