aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/effects.js
Commit message (Collapse)AuthorAgeFilesLines
* Tests: replace dead links in qunit fixtureTimmy Willison2024-08-121-1/+1
| | | Close gh-5532
* Build: improve specificity of eslint config; add ecma versionsTimmy Willison2024-06-061-6/+1
| | | Closes gh-5501
* Build: migrate most grunt tasks off of gruntTimmy Willison2023-09-181-18/+44
| | | | | | | | | | | | | | | | | | | | | | | | | Updated tasks include: - lint - npmcopy - build, minify, and process for distribution. - new custom build command using yargs - compare size of minified/gzip built files - pretest scripts, including qunit-fixture, babel transpilation, and npmcopy - node smoke tests - promises aplus tests - new watch task using `rollup.watch` directly Also: - upgraded husky and added the new lint command - updated lint config to use new "flat" config format. See https://eslint.org/docs/latest/use/configure/configuration-files-new - Temporarily disabled one lint rule until flat config is supported by eslint-plugin-import. See https://github.com/import-js/eslint-plugin-import/issues/2556 - committed package-lock.json - updated all test scripts to use the new build - added an express test server that uses middleware-mockserver (this can be used to run tests without karma) - build-all-variants is now build:all Close gh-5318
* Tests: Exclude tests based on compilation flags, not API presenceMichał Gołębiowski-Owczarek2022-06-281-1/+1
| | | | | | | | | | Introduces a new test API, `includesModule`. The method returns whether a particular module like "ajax" or "deprecated" is included in the current jQuery build; it handles the slim build as well. The util was created so that we don't treat presence of particular APIs to decide whether to run a test as then if we accidentally remove an API, the tests would still not fail. Fixes gh-5069 Closes gh-5046
* Effects: Remove jQuery.fx.intervalMichał Gołębiowski-Owczarek2022-03-011-168/+148
| | | | | | | `jQuery.fx.interval` has been deprecated since jQuery 3.0.0 but it has been still used in jQuery code until this change. This commit removes the definition and explicitly uses the `13` number in its place. Closes gh-5017
* Docs: Fix incorrect `trac-NUMBER` referencesMichał Gołębiowski-Owczarek2022-01-121-1/+1
| | | | | | | | PR gh-4993 changed a few too many issue references to `trac-NUMBER` ones. This change fixes them. It also fixes a typo in one Trac issue number in selector tests. Ref gh-4993 Closes gh-4995
* Docs: Replace `#NUMBER` Trac issue references with `trac-NUMBER`Michał Gołębiowski-Owczarek2022-01-041-29/+29
| | | | | | | | | | | | | The GitHub UI treats `#NUMBER` as referring to its own issues which is confusing when in jQuery source it's usually referring to the old deprecated Trac instance at https://bugs.jquery.com. This change replaces all such Trac references with `trac-NUMBER`. A few of the references came with the Sizzle integration and referred to the Sizzle GitHub bug tracker. Those have been replaced with full links instead. A new entry describing issue reference conventions has been added to README. Closes gh-4993
* Core: Drop support for Edge Legacy (i.e. non-Chromium Microsoft Edge)Michał Gołębiowski-Owczarek2020-09-221-3/+3
| | | | | | | | | | | | Drop support for Edge Legacy: the non-Chromium, EdgeHTML-based Microsoft Edge version. Also, restrict some workarounds that were applied unconditionally in all browsers to run only in IE now. This slightly increases the size but reduces the performance burden on modern browsers that don't need the workarounds. Also, clean up some comments & remove some obsolete workarounds. Fixes gh-4568 Closes gh-4792
* Manipulation: Make jQuery.htmlPrefilter an identity functionMichał Gołębiowski-Owczarek2020-03-161-11/+11
| | | Closes gh-4642
* Tests: Remove obsolete jQuery data testsMichał Gołębiowski-Owczarek2020-01-131-12/+0
| | | | | The tests relied on `jQuery.cache` so they only ever worked in jQuery 1.x. Closes gh-4586
* Selector: Inline Sizzle into the selector moduleMichał Gołębiowski-Owczarek2019-07-291-8/+8
| | | | | | | | | | | | | | | | | | This commit removes Sizzle from jQuery, inlining its code & removing obsolete workarounds where applicable. The selector-native module has been removed. Further work on the selector module may decrease the size enough that it will no longer be necessary. If it turns out it's still useful, we'll reinstate it but the code will look different anyway as we'll want to share as much code as possible with the existing selector module. The Sizzle AUTHORS.txt file has been merged with the jQuery one - people are sorted by their first contributions to either of the two repositories. The commit reduces the gzipped jQuery size by 1460 bytes compared to master. Closes gh-4395
* Core: Remove IE-specific support tests, rely on document.documentModeMichał Gołębiowski-Owczarek2019-05-131-0/+2
| | | | | | | Also, update some tests to IE-sniff when deciding whether to skip a test. Fixes gh-4386 Closes gh-4387
* Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJSMichał Gołębiowski-Owczarek2019-04-291-30/+21
| | | | | | | | | | | Also, update support comments format to match format described in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197 with the change from: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-448998379 (open-ended ranges end with `+`). Fixes gh-3950 Fixes gh-4299 Closes gh-4347
* Build: Update Sinon from 2.3.7 to 7.3.1, other updatesMichał Gołębiowski-Owczarek2019-04-041-2/+2
| | | Closes gh-4341
* Build: Update QUnit from 1.23.1 to 2.9.2Michał Gołębiowski-Owczarek2019-03-041-7/+8
| | | Closes gh-4307
* Build: Update test code for compatibility with QUnit 2.x (#4297)abnud12019-02-181-4/+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
* Core: Recognize Shadow DOM in attachment checksSaptak Sengupta2018-11-091-0/+32
| | | | | | | Allow `isAttached` to check Shadow DOM for attachment. Fixes gh-3504 Closes gh-3996 Ref gh-3977
* CSS: Skip the px-appending logic for animations of non-element propsMichał Gołębiowski-Owczarek2018-04-301-0/+11
| | | | | | | Without this change animating properties from jQuery.cssNumber on non-elements throws an error. Ref gh-4055 Closes gh-4061
* Core: deprecate jQuery.isFunctionJason Bedard2018-01-151-1/+1
| | | | Fixes gh-3609
* Core: deprecate jQuery.nowTimmy Willison2018-01-081-2/+0
| | | | | Fixes gh-2959 Close gh-3884
* Tests: Add support for running unit tests via grunt with karmaTimo Tijhof2017-12-181-1/+1
| | | | | | | | | | | | | - 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
* CSS: Avoid unit-conversion interference from CSS upper boundsRichard Gibson2017-08-281-1/+2
| | | | Fixes gh-2144 Closes gh-3745
* Effects: stabilize rAF logic & align timeout logic with itOleg Gaidarenko2017-03-061-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rAF logic was introduced almost three years ago relative to this commit, as a primary method for scheduling animation (see gh-1578 pull). With it there was two substantial changes - one was explicitly mentioned and the other was not. First, if browser window was hidden aka `document.hidden === true` it would immediately execute all scheduled animation without waiting for time pass i.e. tick time become `0` instead of 13 ms of a default value. Which created possibility for circular executions in case if `complete` method executed the same animation (see gh-3434 issue). And the second one - since then there was two ways of scheduling animation: with `setInterval` and `requestAnimationFrame`, but there was a difference in their execution. In case of `setInterval` it waited default `jQuery.fx.interval` value before actually starting the new tick, not counting the first step which wasn't set to be executed through tick method (aka `jQuery.fx.tick`). Whereas `requestAnimationFrame` first scheduled the call and executed the `step` method right after that, counting the first call of `jQuery.fx.timer`, `tick` was happening twice in one frame. But since tests explicitly disabled rAF method i.e. `requestAnimationFrame = null` and checking only `setInterval` logic, since it's impossible to do it otherwise - we missed that change. Faulty logic also was presented with `cancelAnimationFrame`, which couldn't clear any timers since `raf` scheduler didn't define new `timerId` value. Because that change was so subtle, apparently no user noticed it proving that both `cancelAnimationFrame` and `clearInterval` code paths are redundant. Since `cancelAnimationFrame` didn't work properly and rAF is and was a primary used code path, plus the same approach is used in other popular animation libs. Therefore those code paths were removed. These changes also replace two different functions which schedule the animation with one, which checks what type of logic should be used and executes it appropriatley, but for secondary path it now uses `setTimeout` making it more consistent with rAF path. Since ticks are happening globally we also don't require to listen `visibilitychange` event. It also changes the way how first call is scheduled so execution of animation will not happen twice in one frame. No new tests were not introduced, since now `setTimeout` logic should be equivalent to the rAF one, but one test was changed since now we actually execute animation at the first tick. Fixes gh-3434 Closes gh-3559
* Effects: Resolve issues revealed by recent Callbacks fixRichard Gibson2017-01-161-8/+9
| | | | | | | | | | Notify full progress before resolving empty animations Register animation callbacks before their ticker Remove the right timer when immediately-done animations spawn more Ref 9d822bc1c13dd3393b418210a99537c22c06f2c3 Fixes gh-3502 Fixes gh-3503 Closes gh-3496
* Build: ESLint detailsOleg Gaidarenko2016-06-111-3/+3
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Deferred: Separate the two paths in jQuery.whenRichard Gibson2016-05-021-1/+1
| | | | | | | | Single- and no-argument calls act like Promise.resolve. Multi-argument calls act like Promise.all. Fixes gh-3029 Closes gh-3059
* CSS: Toggle detached elements as visible unless they have display: noneRichard Gibson2016-04-111-4/+17
| | | | | Fixes gh-2863 Closes gh-3037
* Tests: do not run IE9 effect tests if inside testswarmOleg Gaidarenko2016-04-041-20/+29
| | | | | | | | That test doesn't work properly in such environment Ref e04e246552c27e872bbf4ae00b55def02b197189 Fixes gh-2888 Closes gh-3034
* Docs:Tests: Remove legacy code & add support comments where neededMichał Gołębiowski2016-03-301-31/+19
| | | | | | | | 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-7/+1
| | | | | | | | | | 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
* CSS: Restore cascade-override behavior in .showRichard Gibson2016-01-131-76/+85
| | | | | | | Fixes gh-2654 Fixes gh-2308 Close gh-2810 Ref 86419b10bfa5e3b71a7d416288ab806d47a31d1f
* Effects: add tests for using jQuery.speed directlyTimmy Willison2015-11-171-0/+85
| | | | | Fixes gh-2716 Close gh-2724
* Selector: pass jQuery unit tests with selector-nativeTimmy Willison2015-11-111-10/+31
| | | | | | | | | - 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
* Tests: further improvements QUnit 2.0 migrationOleg Gaidarenko2015-09-081-4/+4
| | | | | | | | * Remove QUnit jshint globals * Extend QUnit.assert methods * Use assert.async instead of start/stop/done Ref b930d14ce64937e9478405eee2828d4da091d2cb
* Effects: Finish should call progressThomas Tortorini2015-09-081-4/+45
| | | | | Fixes gh-2283 Closes gh-2292
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-659/+677
| | | | Fixes gh-2056
* Tests: partially use new qunit interfaceOleg Gaidarenko2015-08-161-452/+453
| | | | | | | | | | | | 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
* Tests: don't use deprecated argument in test declarationOleg Gaidarenko2015-07-301-25/+74
| | | | Closes gh-2507
* Build: Acknowledge Android 2.3 is not ES5-compatibleMichał Gołębiowski2015-07-201-1/+1
| | | | | | | | | | | Android 2.3 chokes on unquoted reserved words being used as property names which was making Deferred tests not run. Acknowledge the sad fact that Android 2.3 is not ES5-compliant browser and enable the "es3" option in JSHint config. Fixes gh-2478 Closes gh-2481
* Effects: Add tests for jQuery.TweenCorey Frang2015-06-261-2/+4
|
* Tests: fix tests in accordance with new :visible behaviorTimmy Willison2015-05-121-1/+1
|
* CSS: Ignore the CSS cascade in show()/hide()/etc.Richard Gibson2015-05-111-93/+168
| | | | | | Fixes gh-1767 Fixes gh-2071 Closes gh-2180
* Effects: add tests for jQuery.easing._default in Animation and TweenTimmy Willison2015-05-051-25/+80
| | | | Ref gh-2219
* Effects: set default easing using jQuery.easing._defaultTimmy Willison2015-05-051-15/+35
| | | | | Fixes gh-2219 Close gh-2218
* Tests: Minor updates for QUnit 1.16 compatibilityRichard Gibson2014-12-051-10/+12
| | | | | | More to come later. (cherry picked from commit f6f8848fbe477fa93fd27ac7f10885dd6e97f633)
* Css: Fix the "sanity check" testMichał Gołębiowski2014-07-281-1/+1
| | | | | The #dl element has 0 height so it's now considered hidden regardless of its width.
* Effects: Improve raf logicOleg Gaidarenko2014-06-161-0/+28
| | | | | | | | * Make animation behave as if jQuery.fx.off = true if document is hidden * Use cancelAnimationFrame in jQuery.fx.stop Closes gh-1578
* Effects: Reintroduce use of requestAnimationFrameOleg Gaidarenko2014-06-161-0/+4
| | | | | | | | | | Same as before, just use don't use prefixes, since they pretty match useless now and use page visibility API to determine if animation should start. Also null the requestAnimationFrame attribute in window for tests since sinon does not provide fake method for it. Fixes #15147
* Effects: Remove needless operations in testsOleg Gaidarenko2014-05-091-3/+0
|
* Effects: Respect display value on inline elementsOleg Gaidarenko2014-04-301-0/+24
| | | | | | | | Take "olddisplay" value into the account Fixes #14824 Closes gh-1566 Ref 73fe17299a840a8a7f3ffffcac15e32a88bd3d66