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.linger/test/handlers.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.linger/test/handlers.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/handlers.js | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/handlers.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/handlers.js deleted file mode 100644 index 621ea491..00000000 --- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/handlers.js +++ /dev/null @@ -1,111 +0,0 @@ -;(function(){ - - module("Event Handlers"); - - // a simple re-usable test harness object - var obj = { - init: function( opts ){ - obj.$div = $('<div />') - .css({ - position: 'absolute', - top: 0, - left: 0, - height: 100, - width: 100 - }) - .append('<div class="child" />') - .appendTo( document.body ) - .bind("lingerstart linger lingerend", opts || {}, function( event ){ - obj[ event.type ] += 1; - return obj.returned[ event.type ]; - }); - $.extend( obj, { lingerstart:0, linger:0, lingerend:0 }); - obj.returned = {}; - }, - done: function(){ - obj.$div.remove(); - start(); - } - }; - - asyncTest('"lingerstart" return false',function(){ - - expect( 3 ); - - // prep interaction - obj.init(); - // set the return value - obj.returned['lingerstart'] = false; - // simulate interaction - obj.$div - .fire("mouseover",{ pageX:50, pageY:50 }) - .fire("mousemove",{ pageX:56, pageY:58 }); // move <= 10 pixels (default speed) - // wait 100 ms (default delay) - setTimeout(function(){ - obj.$div.fire("mouseout",{ pageX:51, pageY:51 }); - // wait 100 ms (persist) - setTimeout(function(){ - // inspect results - equals( obj.lingerstart, 1, "lingerstart"); - equals( obj.linger, 0, "linger"); - equals( obj.lingerend, 0, "lingerend"); - obj.done(); - }, 100 ); - }, 100 ); - - }); - - asyncTest('"linger" return false',function(){ - - expect( 3 ); - - // prep interaction - obj.init({ persist:100 }); - // set the return value - obj.returned['linger'] = false; - // simulate interaction - obj.$div - .fire("mouseover",{ pageX:50, pageY:50 }) - .fire("mousemove",{ pageX:56, pageY:58 }); // move <= 10 pixels (default speed) - // wait 300 ms (3x default delay) - setTimeout(function(){ - obj.$div.fire("mouseout",{ pageX:51, pageY:51 }); - // wait 100 ms (persist) - setTimeout(function(){ - // inspect results - equals( obj.lingerstart, 1, "lingerstart"); - equals( obj.linger, 3, "linger"); - equals( obj.lingerend, 0, "lingerend"); - obj.done(); - }, 100 ); - }, 350 ); - - }); - - asyncTest('"lingerend" return false',function(){ - - expect( 3 ); - - // prep interaction - obj.init({ persist:100 }); - // set the return value - obj.returned['lingerend'] = false; - // simulate interaction - obj.$div - .fire("mouseover",{ pageX:50, pageY:50 }) - .fire("mousemove",{ pageX:56, pageY:58 }); // move <= 10 pixels (default speed) - // wait 100 ms (default delay) - setTimeout(function(){ - obj.$div.fire("mouseout",{ pageX:51, pageY:51 }); - // wait 300 ms (3x persist) - setTimeout(function(){ - // inspect results - equals( obj.lingerstart, 1, "lingerstart"); - equals( obj.linger, 1, "linger"); - equals( obj.lingerend, 3, "lingerend"); - obj.done(); - }, 350 ); - }, 300 ); - }); - -})();
\ No newline at end of file |