aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Gruntfile.js3
-rw-r--r--bower.json1
-rw-r--r--external/jquery-simulate/LICENSE.txt37
-rw-r--r--external/jquery-simulate/jquery.simulate.js (renamed from tests/jquery.simulate.js)8
-rw-r--r--tests/unit/accordion/accordion.html2
-rw-r--r--tests/unit/autocomplete/autocomplete.html2
-rw-r--r--tests/unit/button/button.html2
-rw-r--r--tests/unit/core/core.html2
-rw-r--r--tests/unit/core/core_deprecated.html2
-rw-r--r--tests/unit/datepicker/datepicker.html2
-rw-r--r--tests/unit/dialog/dialog.html2
-rw-r--r--tests/unit/draggable/draggable.html2
-rw-r--r--tests/unit/droppable/droppable.html2
-rw-r--r--tests/unit/effects/effects.html2
-rw-r--r--tests/unit/menu/menu.html2
-rw-r--r--tests/unit/position/position.html2
-rw-r--r--tests/unit/progressbar/progressbar.html2
-rw-r--r--tests/unit/resizable/resizable.html2
-rw-r--r--tests/unit/selectable/selectable.html2
-rw-r--r--tests/unit/selectmenu/selectmenu.html2
-rw-r--r--tests/unit/slider/slider.html2
-rw-r--r--tests/unit/sortable/sortable.html2
-rw-r--r--tests/unit/spinner/spinner.html2
-rw-r--r--tests/unit/tabs/tabs.html2
-rw-r--r--tests/unit/tooltip/tooltip.html2
-rw-r--r--tests/unit/widget/widget.html2
26 files changed, 68 insertions, 25 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index a3d545ce3..72236561f 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -232,6 +232,9 @@ grunt.initConfig({
"jquery-mousewheel/jquery.mousewheel.js": "jquery-mousewheel/jquery.mousewheel.js",
"jquery-mousewheel/LICENSE.txt": "jquery-mousewheel/LICENSE.txt",
+ "jquery-simulate/jquery.simulate.js": "jquery-simulate/jquery.simulate.js",
+ "jquery-simulate/LICENSE.txt": "jquery-simulate/LICENSE.txt",
+
"jshint/jshint.js": "jshint/dist/jshint.js",
"jshint/LICENSE": "jshint/LICENSE",
diff --git a/bower.json b/bower.json
index 6cff526ef..6067e9512 100644
--- a/bower.json
+++ b/bower.json
@@ -12,6 +12,7 @@
},
"devDependencies": {
"jquery-mousewheel": "3.1.12",
+ "jquery-simulate": "1.0.0",
"jshint": "2.4.4",
"qunit": "1.14.0",
diff --git a/external/jquery-simulate/LICENSE.txt b/external/jquery-simulate/LICENSE.txt
new file mode 100644
index 000000000..24cad742e
--- /dev/null
+++ b/external/jquery-simulate/LICENSE.txt
@@ -0,0 +1,37 @@
+Copyright 2007, 2014 jQuery Foundation and other contributors,
+https://jquery.org/
+
+This software consists of voluntary contributions made by many
+individuals. For exact contribution history, see the revision history
+available at https://github.com/jquery/jquery-simulate
+
+The following license applies to all parts of this software except as
+documented below:
+
+====
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+====
+
+All files located in the node_modules and external directories are
+externally maintained libraries used by this software which have their
+own licenses; we recommend you read them, as their terms may differ from
+the terms above.
diff --git a/tests/jquery.simulate.js b/external/jquery-simulate/jquery.simulate.js
index 28e8a103b..4a96cc310 100644
--- a/tests/jquery.simulate.js
+++ b/external/jquery-simulate/jquery.simulate.js
@@ -1,12 +1,12 @@
/*!
- * jQuery Simulate v0.0.1 - simulate browser mouse and keyboard events
+ * jQuery Simulate v1.0.0 - simulate browser mouse and keyboard events
* https://github.com/jquery/jquery-simulate
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
- * Date: Sun Dec 9 12:15:33 2012 -0500
+ * Date: 2014-08-22
*/
;(function( $, undefined ) {
@@ -201,7 +201,9 @@ $.extend( $.simulate.prototype, {
},
dispatchEvent: function( elem, type, event ) {
- if ( elem.dispatchEvent ) {
+ if ( elem[ type ] ) {
+ elem[ type ]();
+ } else if ( elem.dispatchEvent ) {
elem.dispatchEvent( event );
} else if ( elem.fireEvent ) {
elem.fireEvent( "on" + type, event );
diff --git a/tests/unit/accordion/accordion.html b/tests/unit/accordion/accordion.html
index c16b3e6ea..5a76ba566 100644
--- a/tests/unit/accordion/accordion.html
+++ b/tests/unit/accordion/accordion.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/autocomplete/autocomplete.html b/tests/unit/autocomplete/autocomplete.html
index 6c29c5d49..e7ce6f6d5 100644
--- a/tests/unit/autocomplete/autocomplete.html
+++ b/tests/unit/autocomplete/autocomplete.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/button/button.html b/tests/unit/button/button.html
index ac16532cd..abda5c987 100644
--- a/tests/unit/button/button.html
+++ b/tests/unit/button/button.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/core/core.html b/tests/unit/core/core.html
index 6490a4ae8..2b66a9f32 100644
--- a/tests/unit/core/core.html
+++ b/tests/unit/core/core.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/core/core_deprecated.html b/tests/unit/core/core_deprecated.html
index e6f2bbb06..65b142a5a 100644
--- a/tests/unit/core/core_deprecated.html
+++ b/tests/unit/core/core_deprecated.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/datepicker/datepicker.html b/tests/unit/datepicker/datepicker.html
index 4d2b3fd5b..136bd2f6b 100644
--- a/tests/unit/datepicker/datepicker.html
+++ b/tests/unit/datepicker/datepicker.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/dialog/dialog.html b/tests/unit/dialog/dialog.html
index 49d15266a..936316a36 100644
--- a/tests/unit/dialog/dialog.html
+++ b/tests/unit/dialog/dialog.html
@@ -10,7 +10,7 @@
</script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/draggable/draggable.html b/tests/unit/draggable/draggable.html
index 50e612206..8a19fc046 100644
--- a/tests/unit/draggable/draggable.html
+++ b/tests/unit/draggable/draggable.html
@@ -49,7 +49,7 @@
</style>
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/droppable/droppable.html b/tests/unit/droppable/droppable.html
index 8e4ee6f4c..03ff888e8 100644
--- a/tests/unit/droppable/droppable.html
+++ b/tests/unit/droppable/droppable.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/effects/effects.html b/tests/unit/effects/effects.html
index d0190b9a5..d6cfdb797 100644
--- a/tests/unit/effects/effects.html
+++ b/tests/unit/effects/effects.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/menu/menu.html b/tests/unit/menu/menu.html
index 8e0ae6112..05fdcee11 100644
--- a/tests/unit/menu/menu.html
+++ b/tests/unit/menu/menu.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/position/position.html b/tests/unit/position/position.html
index 81f67bc8e..0cad7d322 100644
--- a/tests/unit/position/position.html
+++ b/tests/unit/position/position.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/progressbar/progressbar.html b/tests/unit/progressbar/progressbar.html
index 280a77f3d..56a02bcd4 100644
--- a/tests/unit/progressbar/progressbar.html
+++ b/tests/unit/progressbar/progressbar.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/resizable/resizable.html b/tests/unit/resizable/resizable.html
index df7ad2193..5668c909a 100644
--- a/tests/unit/resizable/resizable.html
+++ b/tests/unit/resizable/resizable.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/selectable/selectable.html b/tests/unit/selectable/selectable.html
index 7e56718d5..cc4edf909 100644
--- a/tests/unit/selectable/selectable.html
+++ b/tests/unit/selectable/selectable.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/selectmenu/selectmenu.html b/tests/unit/selectmenu/selectmenu.html
index 9be5d7195..618eea3d0 100644
--- a/tests/unit/selectmenu/selectmenu.html
+++ b/tests/unit/selectmenu/selectmenu.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/slider/slider.html b/tests/unit/slider/slider.html
index 70658674b..0142b5e6b 100644
--- a/tests/unit/slider/slider.html
+++ b/tests/unit/slider/slider.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/sortable/sortable.html b/tests/unit/sortable/sortable.html
index 8fe07ede1..d84a8c1e9 100644
--- a/tests/unit/sortable/sortable.html
+++ b/tests/unit/sortable/sortable.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/spinner/spinner.html b/tests/unit/spinner/spinner.html
index dff2a36cd..58988d742 100644
--- a/tests/unit/spinner/spinner.html
+++ b/tests/unit/spinner/spinner.html
@@ -9,7 +9,7 @@
<script src="../../../external/globalize/globalize.culture.ja-JP.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/tabs/tabs.html b/tests/unit/tabs/tabs.html
index 06fd36f87..778639eb3 100644
--- a/tests/unit/tabs/tabs.html
+++ b/tests/unit/tabs/tabs.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/tooltip/tooltip.html b/tests/unit/tooltip/tooltip.html
index 3e13977fd..18bd88c2c 100644
--- a/tests/unit/tooltip/tooltip.html
+++ b/tests/unit/tooltip/tooltip.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
diff --git a/tests/unit/widget/widget.html b/tests/unit/widget/widget.html
index 1afc4a3f9..2b764abab 100644
--- a/tests/unit/widget/widget.html
+++ b/tests/unit/widget/widget.html
@@ -7,7 +7,7 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
- <script src="../../jquery.simulate.js"></script>
+ <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({