Oleg Gaidarenko
e73a67f2e2
Event: fix incorrect test
...
Which was revealed by 03eaadb131
commit,
also do not try to fix typos in data/jquery version
Cherry-picked from d92310050c
2015-10-12 18:38:41 +03:00
Gary Ye
ef6cd83ab0
Tests:Docs: Fix various typos
...
* Changes "baar" to "bar" when used with "foo" in readme
and comments of js files
* mousenter -> mouseenter
Thanks @garysye, @KimTaehee
Cherry-picked from 03eaadb131
Closes gh-2613
Closes gh-2601
2015-10-12 18:09:37 +03:00
Michał Gołębiowski
4c3e63b47c
Tests: Account for Edge in originalEvent UA-sniffs
...
All other cases where Edge user agent needed to be taken into account
in tests have already been resolved.
(cherry-picked from 64fd7ef3d0
)
Fixes gh-2357
2015-09-14 21:14:23 +02:00
Michał Gołębiowski
4b1cff65ce
Tests: Fix the expando-removal test failure in IE 8
...
IE 8 gets the expando removed via removeAttribute so the second assertion
won't be reached. The expected assertion count had to be updated.
Fixes gh-2596
2015-09-14 20:22:19 +02:00
Jason Bedard
5a7674d635
Data: test that delete is not used on DOM nodes
...
(test cherry-picked from 0e982433eb
)
Closes gh-2479
2015-09-08 20:31:06 +02:00
Oleg Gaidarenko
d8b7e7b0bd
Tests: more style corrections
...
Provocated by jscs-dev/node-jscs@2de68c0
Ref c161eecce0
2015-09-08 04:26:33 +03:00
Oleg Gaidarenko
2f0cedc997
Tests: further improvements QUnit 2.0 migration
...
* Remove QUnit jshint globals
* Extend QUnit.assert methods
* Use assert.async instead of start/stop/done
Ref b930d14ce6
Ref c8d15a2f9f
2015-09-08 04:15:54 +03:00
Oleg Gaidarenko
4543815eed
Tests: Partially use new qunit interface
...
http://qunitjs.com/upgrade-guide-2.x/
For most of the boring work was used
https://github.com/apsdehal/qunit-migrate package
However, it can't update local qunit helpers, plus in some places
old QUnit.asyncTest signature is still used
Ref b930d14ce6
Fixes gh-2540
2015-09-07 20:14:59 +03:00
Oleg Gaidarenko
20ddbe4f59
Build: Update jscs and lint files
...
Ref 10fdad742a
Fixes gh-2056
2015-09-07 20:14:50 +03:00
Richard Gibson
3923bb8400
Event: Reduce differences from master
2015-08-10 10:30:03 -04:00
Oleg Gaidarenko
b8b111e337
Tests: don't use deprecated argument in test declaration
...
Ref aabe94edb4
2015-07-30 20:48:26 +03:00
Oleg Gaidarenko
37c3d08782
Event: improve originalEvent hack
...
Ref 6df669f0fb
Ref gh-2336
2015-05-29 20:33:08 +03:00
Oleg Gaidarenko
ef30bdf4f1
Event: remove deprecated event aliases
...
(Cherry-picked from 0705be4750
)
Fixes gh-2286
Closes gh-2287
Ref trac-11733
2015-05-19 13:47:17 +03:00
Oleg Gaidarenko
1a067a49d1
Event: remove guard for falsy handler argument of jQuery#on method
...
(cherry-picked from fac67a9842
)
Since we don't have this in off method and its a common perception
that this is a rudiment code
Ref gh-2248
Closes gh-2249
2015-05-03 13:57:55 +03:00
Dave Methvin
a05de404d8
Event: HTML5 drop events inherit from MouseEvent
...
Fixes gh-2009
Ref gh-1925
(cherry picked from commit d7e5fcee51
)
Conflicts:
test/unit/event.js
2015-01-14 14:45:44 -05:00
Aditya Raghavan
5b0b1b77db
Event: Normalize mouse event properties in drag events
...
DragEvent is a superset of MouseEvent, so we want to fix up mouse
properties like pageX and pageY.
Fixes gh-1925
(cherry picked from commit 389b2ab3b93bfd68ca6c6153a43e11d93ab9ec71)
2015-01-05 15:30:32 -05:00
Dave Methvin
51564bbd39
Event: Empty namespaces should be uneventfully ignored
...
Thanks @hamishdickson for the report!
Closes gh-1769
(cherry picked from commit 8653068dd6
)
2014-12-09 20:10:56 -05:00
Michał Gołębiowski
90d7cc1d8b
Misc: Drop support for older browsers; update support comments
...
That includes IE<8, Opera 12.x, Firefox<29, Safari<6.0 and some hacks
for old Blackberry.
Fixes gh-1836
Fixes gh-1701
Refs gh-1815
Refs gh-1820
2014-12-08 21:12:33 +01:00
Veaceslav Grimalschi
ef93f95452
Event: Fully clean up events in unit test
...
Closes gh-1685
(cherry picked from commit 4467ed606a
)
2014-12-07 21:31:39 -05:00
Daniel Herman
d4a998f62f
Event: Restore the constructor
property on jQuery.Event prototype
...
The original definition of the jQuery.Event prototype was paving over the
`constructor` property which was causing jQuery.isPlainObject to
improperly report that an instance of jQuery.Event was a plain object.
Fixes #15090
Closes gh-1580
(cherry picked from commit b807aedb7f
)
2014-09-04 03:29:16 -04:00
Michał Gołębiowski
7326c0467e
Event: Don't test stopImmediatePropagation in Android 2.3
...
Android 2.3 doesn't support stopImmediatePropagation; jQuery fallbacks
to stopPropagation in such a case.
2014-03-18 21:00:42 +01:00
Dave Methvin
3be4f13dc5
Event: Unit test for #14741 fix
...
Fixes #14741
Closes gh-1503
(cherry picked from commit 472f70a9df
)
2014-03-16 11:02:17 -04:00
Dave Methvin
4c68d107b5
Event: Call underlying stopImmediatePropagation when present
...
Fixes #13997
(cherry picked from commit 6a89db86ed
)
2014-03-12 21:45:50 -04:00
Dave Methvin
93fdfa2d8c
Event: Allow triggerHandler(beforeunload)
...
Fixes #14791
(cherry picked from commit 06adf7c95d
)
Conflicts:
src/event.js
2014-03-04 21:50:41 -05:00
Michał Gołębiowski
92361f3351
Event: Blacklist the onbeforeunload test in Android 2.3
...
Similarly to iOS, Android 2.3 has the onbeforeunload property on window
but doesn't support the event. This commit blacklists the test there as well.
(cherry-picked from 6d2ab64df7
)
2014-02-13 16:01:43 -08:00
Michał Gołębiowski
42b740bc02
Tests: Blacklist beforeunload test in iOS
...
iOS has the window.onbeforeunload field but doesn't support the beforeunload
handler making it impossible to feature-detect the support.
(cherry-picked from 988d99ad27
)
Fixes #14717
Closes gh-1496
2014-01-27 18:55:53 +01:00
Dave Methvin
5f325b1bee
Ref #14180 , let focusin/out work on non-element targets.
...
(cherry picked from commit c2aca17d45
)
Conflicts:
src/event.js
2013-11-14 16:40:22 -05:00
Dave Methvin
97d53838e0
Fix #14180 . Allow cross-frame use of focusin/out. Close gh-1369.
...
(cherry picked from commit ebdb467761d756d4e52608a0df4a4d9b17da8092)
(conflicts with .data() resolved manually)
2013-11-12 21:24:20 -05:00
Oleg
7f829752e6
Don't execute focus tests in Firefox
...
Cherry picked from 45be91e398
commit
2013-11-08 16:07:26 +01:00
Dave Methvin
469150a27e
Revert "Fix #14180 . Allow cross-frame use of focusin/out. Close gh-1369."
...
This reverts commit bba8366af4
.
Because cross-frame focus sucks.
2013-10-22 22:47:34 -04:00
Dave Methvin
bba8366af4
Fix #14180 . Allow cross-frame use of focusin/out. Close gh-1369.
...
(cherry picked from commit 6d5dfa0eda2c19e8838930fafff83b596654eca2)
Manually edited for conflicts.
2013-10-22 21:48:50 -04:00
Dave Methvin
b7da3b0043
Fix #13993 . Save result of native inline handlers. Close gh-1368.
...
(cherry picked from commit 3bcd04f528
)
2013-10-06 17:58:28 -04:00
Oleg
908d88cc70
Add setup function for the event module
...
(cherry picked from the commit 2c0b9027de
)
2013-09-30 21:17:10 +04:00
Oleg
b2f27632eb
Focus on the body before running focus test
2013-09-30 20:23:21 +04:00
Oleg
c809736db2
Try to fix focus test again
2013-09-30 19:20:08 +04:00
Oleg
0b9a182ecd
Run focus test only if document has focus
2013-09-23 20:50:31 +04:00
Richard Gibson
3d6ed4483e
No ticket: Fix IE focus test failures
2013-09-23 12:00:57 -04:00
Richard Gibson
6a6604b785
No ticket: Hide the testing-support jQuery from tests
...
(cherry picked from commit 0c18520923
)
Conflicts:
test/data/testrunner.js
2013-09-03 11:13:20 -04:00
Timmy Willison
8e6e239256
Pass all tests (and load Sizzle fixture correctly) when loading with AMD
...
Conflicts:
src/css.js
2013-08-29 16:25:44 -04:00
Oleg Gaidarenko
49670c5f48
Don't execute DOM ready tests in AMD mode (they aren't loaded before DOM ready). Close gh-1335.
2013-08-16 14:36:08 -04:00
Timmy Willison
d2435ead36
Update jshintrc to conform to new style guide. Conform to onevar and unused in tests. Fixes #13755 .
...
Conflicts:
src/.jshintrc
src/data.js
test/unit/attributes.js
test/unit/core.js
test/unit/data.js
test/unit/event.js
test/unit/manipulation.js
test/unit/queue.js
test/unit/traversing.js
test/unit/wrap.js
2013-04-09 12:21:54 -04:00
Dave Methvin
fdaf2146ad
Fix #13393 . Avoid IE9 activeElement of death.
...
(Cherry picked from 85fc5878b3
)
Conflicts:
src/event.js
2013-04-08 21:52:16 -04:00
Richard Gibson
14b09ef98e
Ref #12652 : Allow overriding native .click() suppression
2013-04-08 13:19:03 -04:00
Michał Gołębiowski
8594decfcc
Ref #13554 : Move redundant methods to event-alias.js. Close gh-1225.
...
(cherry picked from commits 8ca9f931ec
84a94acae1
100d3c3516
)
2013-04-07 00:48:58 -04:00
Richard Gibson
f8b27f16ba
Ref 65a66489
: oldIE handholding for native event tests
2013-04-04 19:26:08 -04:00
Richard Gibson
65a6648932
Ref #13353 : capture onlyHandlers in jQuery.Event.isTrigger. Close gh-1183.
2013-04-03 20:25:50 -04:00
dmitrygusev
a13cadadf6
Fix typos. Close gh-1186.
2013-02-28 15:55:55 -05:00
Dave Methvin
f5163914fa
Fix #13471 . $().on(".xyz"...) should avoid later crash.
...
If the event type is an empty string we end up hanging in .off() which makes for
mighty hard debugging. Instead treat it as a no-op. Docs seem clear this is not
allowed.
2013-02-26 12:24:56 -05:00
Richard Gibson
1f76536650
No ticket: Revise unit tests in anticipation of Sizzle-free builds
...
(cherry picked from commit 59f5adb622
)
2013-02-22 20:33:00 -05:00
Andrew Plummer
f005af54e4
event: Stricter type checking in trigger - Fixes #13360 - Closes gh-1153
...
Squashed commit of the following:
commit 5935a362c7
Author: Andrew Plummer <plummer.andrew@gmail.com>
Date: Fri Feb 1 02:40:42 2013 +0900
Using "hasOwnProperty" to check for direct properties "type" and
"namespace" on events before triggering.
2013-01-31 12:01:34 -06:00