Skip to content

Commit aa425ab

Browse files
committed
Build: Pull in jquery.simulate.js from Bower
Fixes #10563
1 parent 849c6fd commit aa425ab

File tree

26 files changed

+68
-25
lines changed

26 files changed

+68
-25
lines changed

Gruntfile.js

+3
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ grunt.initConfig({
232232
"jquery-mousewheel/jquery.mousewheel.js": "jquery-mousewheel/jquery.mousewheel.js",
233233
"jquery-mousewheel/LICENSE.txt": "jquery-mousewheel/LICENSE.txt",
234234

235+
"jquery-simulate/jquery.simulate.js": "jquery-simulate/jquery.simulate.js",
236+
"jquery-simulate/LICENSE.txt": "jquery-simulate/LICENSE.txt",
237+
235238
"jshint/jshint.js": "jshint/dist/jshint.js",
236239
"jshint/LICENSE": "jshint/LICENSE",
237240

bower.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
"devDependencies": {
1414
"jquery-mousewheel": "3.1.12",
15+
"jquery-simulate": "1.0.0",
1516
"jshint": "2.4.4",
1617
"qunit": "1.14.0",
1718

external/jquery-simulate/LICENSE.txt

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Copyright 2007, 2014 jQuery Foundation and other contributors,
2+
https://jquery.org/
3+
4+
This software consists of voluntary contributions made by many
5+
individuals. For exact contribution history, see the revision history
6+
available at https://github.com/jquery/jquery-simulate
7+
8+
The following license applies to all parts of this software except as
9+
documented below:
10+
11+
====
12+
13+
Permission is hereby granted, free of charge, to any person obtaining
14+
a copy of this software and associated documentation files (the
15+
"Software"), to deal in the Software without restriction, including
16+
without limitation the rights to use, copy, modify, merge, publish,
17+
distribute, sublicense, and/or sell copies of the Software, and to
18+
permit persons to whom the Software is furnished to do so, subject to
19+
the following conditions:
20+
21+
The above copyright notice and this permission notice shall be
22+
included in all copies or substantial portions of the Software.
23+
24+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31+
32+
====
33+
34+
All files located in the node_modules and external directories are
35+
externally maintained libraries used by this software which have their
36+
own licenses; we recommend you read them, as their terms may differ from
37+
the terms above.

tests/jquery.simulate.js renamed to external/jquery-simulate/jquery.simulate.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*!
2-
* jQuery Simulate v0.0.1 - simulate browser mouse and keyboard events
2+
* jQuery Simulate v1.0.0 - simulate browser mouse and keyboard events
33
* https://github.com/jquery/jquery-simulate
44
*
55
* Copyright 2012 jQuery Foundation and other contributors
66
* Released under the MIT license.
77
* http://jquery.org/license
88
*
9-
* Date: Sun Dec 9 12:15:33 2012 -0500
9+
* Date: 2014-08-22
1010
*/
1111

1212
;(function( $, undefined ) {
@@ -201,7 +201,9 @@ $.extend( $.simulate.prototype, {
201201
},
202202

203203
dispatchEvent: function( elem, type, event ) {
204-
if ( elem.dispatchEvent ) {
204+
if ( elem[ type ] ) {
205+
elem[ type ]();
206+
} else if ( elem.dispatchEvent ) {
205207
elem.dispatchEvent( event );
206208
} else if ( elem.fireEvent ) {
207209
elem.fireEvent( "on" + type, event );

tests/unit/accordion/accordion.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/autocomplete/autocomplete.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/button/button.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/core/core.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/core/core_deprecated.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/datepicker/datepicker.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/dialog/dialog.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</script>
1111
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
1212
<script src="../../../external/qunit/qunit.js"></script>
13-
<script src="../../jquery.simulate.js"></script>
13+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1414
<script src="../testsuite.js"></script>
1515
<script>
1616
TestHelpers.loadResources({

tests/unit/draggable/draggable.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
</style>
5050

5151
<script src="../../../external/qunit/qunit.js"></script>
52-
<script src="../../jquery.simulate.js"></script>
52+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
5353
<script src="../testsuite.js"></script>
5454
<script>
5555
TestHelpers.loadResources({

tests/unit/droppable/droppable.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/effects/effects.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/menu/menu.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/position/position.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/progressbar/progressbar.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/resizable/resizable.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/selectable/selectable.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/selectmenu/selectmenu.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/slider/slider.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/sortable/sortable.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/spinner/spinner.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<script src="../../../external/globalize/globalize.culture.ja-JP.js"></script>
1010
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
1111
<script src="../../../external/qunit/qunit.js"></script>
12-
<script src="../../jquery.simulate.js"></script>
12+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1313
<script src="../testsuite.js"></script>
1414
<script>
1515
TestHelpers.loadResources({

tests/unit/tabs/tabs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/tooltip/tooltip.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

tests/unit/widget/widget.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="../../jquery.js"></script>
88
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
99
<script src="../../../external/qunit/qunit.js"></script>
10-
<script src="../../jquery.simulate.js"></script>
10+
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
1111
<script src="../testsuite.js"></script>
1212
<script>
1313
TestHelpers.loadResources({

0 commit comments

Comments
 (0)