summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test
diff options
context:
space:
mode:
authorst782s <statta@research.att.com>2017-05-04 07:48:42 -0400
committerst782s <statta@research.att.com>2017-05-04 12:28:17 -0400
commitb54df0ddd0c6a0372327c5aa3668e5a6458fcd64 (patch)
treee69cfa9b314a801bd187cf0145d1d4306436229c /ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test
parent39d1e62c84041831bfc52cca73b5ed5efaf57d27 (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/fire/test')
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/custom.js61
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/form.js50
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/index.html26
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/key.js52
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mouse.js54
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mutation.js52
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/object.js50
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/requirements.js26
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/touch.js61
9 files changed, 0 insertions, 432 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/custom.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/custom.js
deleted file mode 100644
index 8e9fbce4..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/custom.js
+++ /dev/null
@@ -1,61 +0,0 @@
-module("Custom Events");
-
-if ( !document.createEvent ){
- test("Custom Event Simulation Not Supported",function(){
- ok( true, 'This browser does not support "document.createEvent" and cannot simulate custom events.');
- });
-}
-else {
-
- // test each of the following events
- $.each([
- "snap","crackle","pop"
- ],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( 33 );
-
- // custom event properties
- var props = {
- pageX: Math.round( Math.random() * 500 ),
- pageY: Math.round( Math.random() * 500 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false,
- button: Math.round( Math.random() * 2 )
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
- equals( ev.pageX, props.pageX, "event.pageX" );
- equals( ev.pageY, props.pageY, "event.pageY" );
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.button, props.button, "event.button" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
- });
-
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/form.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/form.js
deleted file mode 100644
index 973e587c..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/form.js
+++ /dev/null
@@ -1,50 +0,0 @@
-module("Form Events");
-
-// test each of the following events
-$.each([
- "focus","blur","change",
- "submit","select","reset"
-],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( 0 );
-
- // custom event properties
- var props = {
- //keyCode: Math.round( Math.random() * 256 ),
- //charCode: Math.round( Math.random() * 256 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
-
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/index.html b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/index.html
deleted file mode 100644
index 0b3e7e2d..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/index.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link href="../../img/favicon.ico" rel="shortcut icon" />
- <link href="../../jquery/qunit.css" rel="stylesheet" />
- <script src="../../jquery/jquery.js"></script>
- <script src="../../jquery/qunit.js"></script>
- <script src="../../fire/jquery.fire.js"></script>
- <script src="./requirements.js"></script>
- <script src="./mouse.js"></script>
- <script src="./touch.js"></script>
- <script src="./key.js"></script>
- <script src="./form.js"></script>
- <script src="./object.js"></script>
- <script src="./mutation.js"></script>
- <script src="./custom.js"></script>
- <title>ThreeDubMedia &middot; jQuery.fire.js</title>
- </head>
- <body>
- <h1 id="qunit-header">jQuery.fire.js Unit Tests</h1>
- <h2 id="qunit-banner"></h2>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- </body>
-</html> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/key.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/key.js
deleted file mode 100644
index 3ff0b27f..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/key.js
+++ /dev/null
@@ -1,52 +0,0 @@
-module("Key Events");
-
-// test each of the following events
-$.each([
- "keydown","keyup","keypress"
-],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( i < 2 ? 27 : 30 );
-
- // custom event properties
- var props = {
- keyCode: Math.round( Math.random() * 256 ),
- charCode: Math.round( Math.random() * 256 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
- equals( ev.keyCode, props.keyCode, "event.keyCode" );
- if ( type == "keypress" ){
- equals( ev.charCode, props.charCode, "event.charCode" );
- }
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mouse.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mouse.js
deleted file mode 100644
index 8e25d785..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mouse.js
+++ /dev/null
@@ -1,54 +0,0 @@
-module("Mouse Events");
-
-// test each of the following events
-$.each([
- "click","dblclick",
- "mouseover","mouseout",
- "mousedown","mouseup","mousemove"
-],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( 33 );
-
- // custom event properties
- var props = {
- pageX: Math.round( Math.random() * 500 ),
- pageY: Math.round( Math.random() * 500 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false,
- button: Math.round( Math.random() * 2 )
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
- equals( ev.pageX, props.pageX, "event.pageX" );
- equals( ev.pageY, props.pageY, "event.pageY" );
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.button, props.button, "event.button" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mutation.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mutation.js
deleted file mode 100644
index 340f6418..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mutation.js
+++ /dev/null
@@ -1,52 +0,0 @@
-module("Mutation Events");
-
-// test each of the following events
-$.each([
- "DOMSubtreeModified","DOMNodeInserted",
- "DOMNodeRemoved","DOMNodeRemovedFromDocument",
- "DOMNodeInsertedIntoDocument","DOMAttrModified",
- "DOMCharacterDataModified"
-],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( 0 );
-
- // custom event properties
- var props = {
- //keyCode: Math.round( Math.random() * 256 ),
- //charCode: Math.round( Math.random() * 256 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
-
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/object.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/object.js
deleted file mode 100644
index 27193dc0..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/object.js
+++ /dev/null
@@ -1,50 +0,0 @@
-module("Object/Frame Events");
-
-// test each of the following events
-$.each([
- "abort","scroll","resize",
- "error","load","unload"
-],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( 0 );
-
- // custom event properties
- var props = {
- //keyCode: Math.round( Math.random() * 256 ),
- //charCode: Math.round( Math.random() * 256 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
-
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/requirements.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/requirements.js
deleted file mode 100644
index fcc369e8..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/requirements.js
+++ /dev/null
@@ -1,26 +0,0 @@
-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( 8 );
-
- // make sure the plugin interface is complete
- ok( jQuery.fn.fire, "FIRE method is defined" );
- ok( jQuery.fire, "CONSTRUCTOR is defined" );
- ok( jQuery.fire.defaults, "DEFAULTS are defined" );
- ok( jQuery.fire.prototype.create, "CREATE method is defined" );
- ok( jQuery.fire.prototype.event, "EVENT method is defined" );
- ok( jQuery.fire.prototype.mouse, "MOUSE method is defined" );
- ok( jQuery.fire.prototype.key, "KEY method is defined" );
- ok( jQuery.fire.prototype.dispatch, "DISPATCH method is defined" );
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/touch.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/touch.js
deleted file mode 100644
index aa05bb67..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/touch.js
+++ /dev/null
@@ -1,61 +0,0 @@
-module("Touch Events");
-
-if ( !document.createEvent ){
- test("Touch Simulation Not Supported",function(){
- ok( true, 'This browser does not support "document.createEvent" and cannot simulate touch events.');
- });
-}
-else {
-
- // test each of the following events
- $.each([
- "touchstart","touchmove","touchend"
- ],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( 33 );
-
- // custom event properties
- var props = {
- pageX: Math.round( Math.random() * 500 ),
- pageY: Math.round( Math.random() * 500 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false,
- button: Math.round( Math.random() * 2 )
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
- equals( ev.pageX, props.pageX, "event.pageX" );
- equals( ev.pageY, props.pageY, "event.pageY" );
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.button, props.button, "event.button" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
- });
-
-} \ No newline at end of file