aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/event.js
Commit message (Collapse)AuthorAgeFilesLines
* 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 Cherry-picked from d92310050ca7bf0b33825d64e052f9a8809c3e9e
* 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 Cherry-picked from 03eaadb131df925d1072afd2496ee3b41d2f1fc6 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. (cherry-picked from 64fd7ef3d081b5c65d541237f73a4d89f0f0ad7b) Fixes gh-2357
* Tests: Fix the expando-removal test failure in IE 8Michał Gołębiowski2015-09-141-1/+4
| | | | | | | 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
* Data: test that delete is not used on DOM nodesJason Bedard2015-09-081-0/+24
| | | | | | (test cherry-picked from 0e982433eb94391b3e9f6838d9b8fbf9bb31abf9) Closes gh-2479
* Tests: more style correctionsOleg Gaidarenko2015-09-081-1/+1
| | | | | | Provocated by jscs-dev/node-jscs@2de68c0 Ref c161eecce09fc66ce252d4adf64b565f726bb6d2
* 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 Ref c8d15a2f9f108e90d3651c31e4abf45415a30fde
* Tests: Partially use new qunit interfaceOleg Gaidarenko2015-09-071-546/+569
| | | | | | | | | | | | | 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 b930d14ce64937e9478405eee2828d4da091d2cb Fixes gh-2540
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-948/+954
| | | | | Ref 10fdad742a2a6aa9f0e00b3e04fc5264797c53c7 Fixes gh-2056
* Event: Reduce differences from masterRichard Gibson2015-08-101-3/+3
|
* Tests: don't use deprecated argument in test declarationOleg Gaidarenko2015-07-301-3/+9
| | | | Ref aabe94edb4880c75eeebc5b5b5d66a9ad17008fe
* Event: improve originalEvent hackOleg Gaidarenko2015-05-291-0/+129
| | | | | Ref 6df669f0fb87cd9975a18bf6bbe3c3548afa4fee Ref gh-2336
* Event: remove deprecated event aliasesOleg Gaidarenko2015-05-191-8/+1
| | | | | | | (Cherry-picked from 0705be475092aede1eddae01319ec931fb9c65fc) Fixes gh-2286 Closes gh-2287 Ref trac-11733
* Event: remove guard for falsy handler argument of jQuery#on methodOleg Gaidarenko2015-05-031-14/+0
| | | | | | | | | | (cherry-picked from fac67a984268ef8f7de952666fda6d8d32754f5f) 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
* Event: HTML5 drop events inherit from MouseEventDave Methvin2015-01-141-7/+12
| | | | | | | | | Fixes gh-2009 Ref gh-1925 (cherry picked from commit d7e5fcee519e5f3e840beef9e67a536e75133df9) Conflicts: test/unit/event.js
* Event: Normalize mouse event properties in drag eventsAditya Raghavan2015-01-051-0/+19
| | | | | | | | 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)
* Event: Empty namespaces should be uneventfully ignoredDave Methvin2014-12-091-0/+11
| | | | | | | Thanks @hamishdickson for the report! Closes gh-1769 (cherry picked from commit 8653068dd6b8a515f5c1d8a0fda4479e9534103e)
* Misc: Drop support for older browsers; update support commentsMichał Gołębiowski2014-12-081-60/+20
| | | | | | | | | | 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
* Event: Fully clean up events in unit testVeaceslav Grimalschi2014-12-071-1/+2
| | | | | Closes gh-1685 (cherry picked from commit 4467ed606ab0a9b28ed495e682576910937fa5e0)
* Event: Restore the `constructor` property on jQuery.Event prototypeDaniel Herman2014-09-041-1/+3
| | | | | | | | | | | 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 b807aedb7fee321fb3aa5d156a5a256ab0634e2d)
* Event: Don't test stopImmediatePropagation in Android 2.3Michał Gołębiowski2014-03-181-2/+5
| | | | | Android 2.3 doesn't support stopImmediatePropagation; jQuery fallbacks to stopPropagation in such a case.
* Event: Unit test for #14741 fixDave Methvin2014-03-161-0/+14
| | | | | | Fixes #14741 Closes gh-1503 (cherry picked from commit 472f70a9df75c289393d6618c36257a04f9cb902)
* Event: Call underlying stopImmediatePropagation when presentDave Methvin2014-03-121-2/+17
| | | | | Fixes #13997 (cherry picked from commit 6a89db86ed817f6a7498076e2a06b90f9fce0831)
* Event: Allow triggerHandler(beforeunload)Dave Methvin2014-03-041-0/+5
| | | | | | | | Fixes #14791 (cherry picked from commit 06adf7c95d93507908181995a9ea15fe2729595a) Conflicts: src/event.js
* Event: Blacklist the onbeforeunload test in Android 2.3Michał Gołębiowski2014-02-131-3/+4
| | | | | | | 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 6d2ab64df7bdda087e79deaa53db969fa6f2cd92)
* Tests: Blacklist beforeunload test in iOSMichał Gołębiowski2014-01-271-1/+4
| | | | | | | | | | iOS has the window.onbeforeunload field but doesn't support the beforeunload handler making it impossible to feature-detect the support. (cherry-picked from 988d99ad278c2c9dc16c68f86bddc4df99dcd928) Fixes #14717 Closes gh-1496
* Ref #14180, let focusin/out work on non-element targets.Dave Methvin2013-11-141-0/+13
| | | | | | | (cherry picked from commit c2aca17d457d302cb1683f925b9e5ee93f0984ea) Conflicts: src/event.js
* Fix #14180. Allow cross-frame use of focusin/out. Close gh-1369.Dave Methvin2013-11-121-0/+33
| | | | | (cherry picked from commit ebdb467761d756d4e52608a0df4a4d9b17da8092) (conflicts with .data() resolved manually)
* Don't execute focus tests in FirefoxOleg2013-11-081-72/+75
| | | | Cherry picked from 45be91e3981164e076a71de31f0b8a972a4bf104 commit
* Revert "Fix #14180. Allow cross-frame use of focusin/out. Close gh-1369."Dave Methvin2013-10-221-27/+0
| | | | | | This reverts commit bba8366af48bd2c80c96e7a0f58b3e16fd736125. Because cross-frame focus sucks.
* Fix #14180. Allow cross-frame use of focusin/out. Close gh-1369.Dave Methvin2013-10-221-0/+27
| | | | | (cherry picked from commit 6d5dfa0eda2c19e8838930fafff83b596654eca2) Manually edited for conflicts.
* Fix #13993. Save result of native inline handlers. Close gh-1368.Dave Methvin2013-10-061-0/+8
| | | | (cherry picked from commit 3bcd04f528597dac0a7084865461574ab4a06465)
* Add setup function for the event moduleOleg2013-09-301-3/+6
| | | | (cherry picked from the commit 2c0b9027de841a437baf7b9c85262f196b9cb09e)
* Focus on the body before running focus testOleg2013-09-301-10/+4
|
* Try to fix focus test againOleg2013-09-301-20/+25
|
* Run focus test only if document has focusOleg2013-09-231-21/+21
|
* No ticket: Fix IE focus test failuresRichard Gibson2013-09-231-2/+5
|
* No ticket: Hide the testing-support jQuery from testsRichard Gibson2013-09-031-0/+1
| | | | | | | | (cherry picked from commit 0c185209233f4c15e57c6a24e8f81b27dd26db59) Conflicts: test/data/testrunner.js
* Pass all tests (and load Sizzle fixture correctly) when loading with AMDTimmy Willison2013-08-291-79/+0
| | | | | Conflicts: src/css.js
* Don't execute DOM ready tests in AMD mode (they aren't loaded before DOM ↵Oleg Gaidarenko2013-08-161-0/+6
| | | | ready). Close gh-1335.
* Update jshintrc to conform to new style guide. Conform to onevar and unused ↵Timmy Willison2013-04-091-120/+135
| | | | | | | | | | | | | | | | 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
* Fix #13393. Avoid IE9 activeElement of death.Dave Methvin2013-04-081-0/+5
| | | | | | | (Cherry picked from 85fc5878b3c6af73f42d61eedf73013e7faae408) Conflicts: src/event.js
* Ref #12652: Allow overriding native .click() suppressionRichard Gibson2013-04-081-21/+20
|
* Ref #13554: Move redundant methods to event-alias.js. Close gh-1225.Michał Gołębiowski2013-04-071-279/+278
| | | | (cherry picked from commits 8ca9f931ec311b6f73990eac7665451a28bceac3 84a94acae1ed7d65d91df235985e433d34486dc3 100d3c351604e1f9641098da2e78678b4e6d9cdf)
* Ref 65a66489: oldIE handholding for native event testsRichard Gibson2013-04-041-1/+8
|
* Ref #13353: capture onlyHandlers in jQuery.Event.isTrigger. Close gh-1183.Richard Gibson2013-04-031-14/+35
|
* Fix typos. Close gh-1186.dmitrygusev2013-02-281-3/+3
|
* Fix #13471. $().on(".xyz"...) should avoid later crash.Dave Methvin2013-02-261-0/+16
| | | | | | 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.
* No ticket: Revise unit tests in anticipation of Sizzle-free buildsRichard Gibson2013-02-221-32/+35
| | | | (cherry picked from commit 59f5adb622dd6bc3419bbaa9cc2d4acd7a0b08b9)
* event: Stricter type checking in trigger - Fixes #13360 - Closes gh-1153Andrew Plummer2013-01-311-0/+14
| | | | | | | | | | | Squashed commit of the following: commit 5935a362c75ecef04d5ec9775cbcaf2165921e8d 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.