aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/event.js
Commit message (Collapse)AuthorAgeFilesLines
* Event: Fix handling of multiple async focus eventsRichard Gibson2019-04-291-0/+43
| | | | Fixes gh-4350 Closes gh-4354
* Event: Prevent leverageNative from double-firing focusinRichard Gibson2019-03-251-5/+1
| | | | | | Also, reduce size. Closes gh-4329 Ref gh-4279
* Event: Leverage native events for focus/blur/click; propagate additional dataRichard Gibson2019-03-201-30/+133
| | | | | | | | | | | | | | | | | | | | | Summary of the changes/fixes: 1. Trigger checkbox and radio click events identically (cherry-picked from b442abacbb8464f0165059e8da734e3143d0721f that was reverted before). 2. Manually trigger a native event before checkbox/radio handlers. 3. Add test coverage for triggering namespaced native-backed events. 4. Propagate extra parameters passed when triggering the click event to the handlers. 5. Intercept and preserve namespaced native-backed events. 6. Leverage native events for focus and blur. 7. Accept that focusin handlers may fire more than once for now. Fixes gh-1741 Fixes gh-3423 Fixes gh-3751 Fixes gh-4139 Closes gh-4279 Ref gh-1367 Ref gh-3494
* Build: Update test code for compatibility with QUnit 2.x (#4297)abnud12019-02-181-3/+4
| | | | | | | | Also, run `grunt npmcopy` to sync the "external" directory with dependencies from package.json. For example, the Sinon library version didn't match. Ref gh-4234 Closes gh-4297
* Event: Move event aliases to deprecatedDave Methvin2018-01-151-86/+0
| | | | Fixes gh-3214
* Tests: fix function reference for unbindingTimmy Willison2018-01-081-4/+4
| | | | Ref gh-2958
* Core: deprecate jQuery.proxy (not slated for removal)Timmy Willison2018-01-081-7/+8
| | | | | Fixes gh-2958 Close gh-3885
* Tests: Add support for running unit tests via grunt with karmaTimo Tijhof2017-12-181-3/+2
| | | | | | | | | | | | | - Update QUnit to 1.23.1 - Remove unused dl#dl from test/index.html - Remove unused map#imgmap from test/index.html - Ensure all urls to data use baseURI - Add the 'grunt karma:main' task - customContextFile & customDebugFile - Add 'npm run jenkins' script Close gh-3744 Fixes gh-1999
* Tests: Account for TestSwarm focus issuesRichard Gibson2017-07-201-89/+98
| | | | Closes gh-3732
* Tests: Simulate events when CI hinders use of native onesRichard Gibson2017-07-201-120/+107
| | | | Ref gh-3732
* Tests: Reduce the abort timeout for simple focus testingRichard Gibson2017-07-191-7/+3
| | | | Ref gh-3732
* Tests: Abort focus tests when the environment doesn't cooperateRichard Gibson2017-07-181-1/+10
| | | | Ref gh-3732
* Tests: Try extra hard to control focusRichard Gibson2017-07-181-12/+21
| | | | Ref gh-3732
* Event: `stopPropagation()` on native event-handlerPierre Spring2017-07-101-0/+41
| | | | | Fixes gh-3693 Close gh-3694
* Tests: add test for passing trigger data to radio click handlerTimmy Willison2017-03-201-0/+10
| | | | | Close gh-3581 Fixes gh-3579
* Revert "Event: Add radio click triggering tests"Timmy Willison2017-03-201-26/+11
| | | | This reverts commit 5f35b5b406ae7d504de86a3f0a5647b2fdf4f2af.
* Event: Add radio click triggering testsAlex Padilla2017-01-191-11/+26
| | | | | Ref b442abacbb8464f0165059e8da734e3143d0721f Ref gh-3423
* Build: ESLint detailsOleg Gaidarenko2016-06-111-19/+20
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Event: Allow constructing a jQuery.Event without a targetDave Methvin2016-06-021-0/+9
| | | | | Fixes gh-3139 Closes gh-3140
* Events: don't execute native stop(Immediate)Propagation from simulationOleg Gaidarenko2016-05-191-7/+90
| | | | | | In Firefox, called `stop(Immediate)Propagation` methods, in capturing phase prevents receiving focus Fixes gh-3111
* Event: Cover invalid delegation selector edge casesRichard Gibson2016-05-061-8/+10
| | | | Ref 7fd36ea145a11d5896de6d064b546b1c57a83f34
* Event: Evaluate delegate selectors at add timeFelipe Sateler2016-05-061-0/+13
| | | | | | | This ensures that invalid selectors throw right away. Fixes gh-3071 Closes gh-3097
* Event: Remove fixHooks, propHooks; switch to ES5 getter with addPropJason Bedard2016-05-041-15/+7
| | | | | | | | | | | Fixes gh-3103 Fixes gh-1746 Closes gh-2860 - Removes the copy loop in jQuery.event.fix - Avoids accessing properties such as client/offset/page/screen X/Y which may cause style recalc or layouts - Simplifies adding property hooks to event object
* Tests: Refactor testIframe() to make it DRYer and more consistentDave Methvin2016-04-111-12/+12
| | | | | Ref gh-3040 Closes gh-3049
* Docs: Update support comments to follow the new syntaxMichał Gołębiowski2016-03-301-3/+3
| | | | | The changes follow the spec proposed in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197
* Docs:Tests: Remove legacy code & add support comments where neededMichał Gołębiowski2016-03-301-0/+1
| | | | | | | | This commits backports some changes done in the patch to the then-existing compat branch that removed support for old browsers and added some support comments. Refs 90d7cc1d8b2ea7ac75f0eacb42439349c9c73278
* Docs:Tests: Remove obsolete code from tests, update support commentsMichał Gołębiowski2016-03-081-34/+25
| | | | | | | | | | Support comments that were lacking the final IE/Edge version that exhibits the bug were checked & updated. Links to the Chromium bug tracker were updated. Code in tests related to unsupported browsers (like Android 2.3 in non-basic tests) has been removed. Fixes gh-2868 Closes gh-2949
* Event: Fix chaining .on() with null handlersDevin Wilson2016-01-191-0/+22
| | | | Fixes gh-2846
* Selector: pass jQuery unit tests with selector-nativeTimmy Willison2015-11-111-1/+2
| | | | | | | | | - Ignore certain tests that obviously are not supported - Beefed up the sortOrder, uniqueSort, isXMLDoc, and attr functions Fixes gh-1742 Fixes gh-2048 Close gh-2703
* Event: Move VML test out of event alias testDave Methvin2015-11-071-5/+15
| | | | Ref gh-2693
* Event: Make event aliases optional in unit testsDave Methvin2015-11-061-44/+41
|
* Event: Add basic unit tests for event aliasesDave Methvin2015-11-051-0/+18
| | | | | | | | Fixes gh-2302 Closes gh-2687 At the moment it's not possible to run the full event unit tests without aliases so this was just tested with a custom build by running this one test.
* Event: Ensure delegation doesn't error on comment nodesTimmy Willison2015-11-041-0/+27
| | | | | Fixes gh-2055 Close gh-2659
* Core: use interactive to evaluate dom ready, barring IE9-10Timmy Willison2015-10-291-0/+12
| | | | Fixes gh-2100
* Event: fix incorrect testOleg Gaidarenko2015-10-121-7/+1
| | | | | Which was revealed by 03eaadb131df925d1072afd2496ee3b41d2f1fc6 commit, also do not try to fix typos in data/jquery version
* Tests:Docs: Fix various typosGary Ye2015-10-121-1/+1
| | | | | | | | | | | | * Changes "baar" to "bar" when used with "foo" in readme and comments of js files * mousenter -> mouseenter Thanks @garysye, @KimTaehee Closes gh-2613 Closes gh-2601
* Tests: Account for Edge in originalEvent UA-sniffsMichał Gołębiowski2015-09-141-6/+4
| | | | | | | All other cases where Edge user agent needed to be taken into account in tests have already been resolved. Fixes gh-2357
* Data: avoid using delete on DOM nodesJason Bedard2015-09-081-2/+5
| | | | Closes gh-2479
* Tests: more style correctionsOleg Gaidarenko2015-09-081-1/+1
| | | | | | Provocated by jscs-dev/node-jscs@2de68c0d8351103bb2a989dc942ab47a391d3546 Closes gh-2578
* Tests: further improvements QUnit 2.0 migrationOleg Gaidarenko2015-09-081-4/+10
| | | | | | | | * Remove QUnit jshint globals * Extend QUnit.assert methods * Use assert.async instead of start/stop/done Ref b930d14ce64937e9478405eee2828d4da091d2cb
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-929/+937
| | | | Fixes gh-2056
* Tests: partially use new qunit interfaceOleg Gaidarenko2015-08-161-569/+591
| | | | | | | | | | | | 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 Fixes gh-2540
* Event: Only check elements for delegation matchesRichard Gibson2015-08-101-0/+11
| | | | | | Closes gh-2529 Ref trac-13208 (cherry picked from commit fc2ba2e1361126c39f955437ee025cfca3bffa65)
* Tests: don't use deprecated argument in test declarationOleg Gaidarenko2015-07-301-3/+9
| | | | Closes gh-2507
* Docs: Fix various spelling mistakesBruno Pérel2015-07-301-1/+1
| | | | Closes gh-2487
* Event: remove outdated originalEvent hackOleg Gaidarenko2015-05-291-16/+49
| | | | | Closes gh-2335 Ref 7475d5debeb7c53158921ed40f6c2fdb25a2cc86
* Event: Remove fake originalEvent from jQuery.Event.simulateGabriel Schulhof2015-05-291-0/+54
| | | | | Fixes gh-2300 Closes gh-2303
* Event: remove deprecated event aliasesOleg Gaidarenko2015-05-191-8/+1
| | | | | | Fixes gh-2286 Closes gh-2287 Ref trac-11733
* Data: remove the expando when there's no more dataTimmy Willison2015-05-121-0/+21
| | | | | Fixes gh-1760 Close gh-2271
* Event: remove guard for falsy handler argument of jQuery#on methodOleg Gaidarenko2015-05-031-14/+0
| | | | | | | | 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