aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/effects
Commit message (Collapse)AuthorAgeFilesLines
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-072-5/+18
| | | | | Fixes #15393 Closes gh-1958
* Tests: Accept a small difference of animated width/heightMichał Gołębiowski-Owczarek2020-07-231-2/+4
| | | | | | | | | | | | | jQuery 3.2 & newer have a different animation logic and the animated elements width/height differ from the starting ones even at the beginning of the animation. The point of the assertions checking that they're identical was to ensure bug #5245 is fixed; that issue manifested by a big jump to half the element size. To test for that, it's enough to check that the first obtained values are close to the original ones. This makes effects tests pass in all supported jQuery versions. Closes gh-1928 Ref #5245
* Tests: Clear the timers queue in an animateClass testMichał Gołębiowski-Owczarek2020-07-231-3/+2
| | | | | | jQueries older than 1.11 or 2.1 were leaving a timer in the queue which could then influence other tests. Closes gh-1926
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-162-6/+8
| | | | | | | | | | | | | This helps fix issues that make tooltip tests sometimes fail when run against jQuery 3.2 or newer due to timing differences. Details: * Add the `moduleAfterEach` function ensuring no timers are running. * Attach this function via `common.testWidget`. * Attach this function to most test suites. * Add a tooltip test helper cleaning up leftover timers. * Rename legacy `setup`/`teardown` hooks to `beforeEach`/`afterEach`. Closes gh-1920
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of the changes: * Build: Add jQuery 3.2.0-3.4.1 to versions UI can be tested against * Build: Load jQuery & Migrate via HTTPS * Build: Add package-lock.json to .gitignore * Build: Update jQuery Migrate from 3.0.0 to 3.1.0 * Build: Allow to run tests against jQuery 3.x-git * Build: Fix formatting according to JSCS rules * Build: Disable JSCS for the inlined jQuery Color * All: Switch from $.isArray to Array.isArray (jQuery.isArray will be removed in jQuery 4.0) * All: Switch from `$.isFunction( x )` to `typeof x === "function"` (jQuery.isFunction will be removed in jQuery 4.0) * All: Inline jQuery.isWindow as it'll be removed in jQuery 4.0 * Effects: Fix a timing issue in a variable declaration. Previously, a jQuery object was created, chained & assigned to a variable that was then accessed in a callback used inside of this chained definition. Due to a timing difference in when the callback fired for the first time in latest jQuery master, it was being called before the variable was defined. * Tests: Make dialog & draggable unit tests less strict (newest jQuery returns fractional results in some cases, making comparisons fail when there's a tiny difference) * All: Migrate from $.trim to bare String.prototype.trim (jQuery.trim will be deprecated in jQuery 3.5) Closes gh-1901
* Effects: Adjust animation duration in testsScott González2016-08-301-2/+2
| | | | | | | | | | | | | With jQuery 3 using `requestAnimationFrame()`, the `setTimeout()` timing for short animations wasn't working consistently. This resulted in infrequent failures everywhere (but infrequent enough that it's hard to even notice), but consistent failures in IE and Edge. Bumping up the duration and running the assertions in the middle seems to give consistent results. Eventually, we should refactor this to use `requestAnimationFrame()` in the tests themselves to avoid problems like this. Closes gh-1738
* Effects: Fix timing of `.animateClass()` assertionScott González2016-07-061-3/+7
|
* Effects: Shift to use no globalsAmanpreet Singh2016-04-142-108/+125
|
* Tests: Fix jshint includes for datepicker and effectsJörn Zaefferer2015-10-011-1/+1
|
* Build: Style updatesAlexander Schmitz2015-09-111-1/+1
| | | | Ref #14246
* Effects: Style updatesAlexander Schmitz2015-09-112-71/+71
| | | | Ref #14246
* Effects: Style updatesAlexander Schmitz2015-08-211-5/+5
| | | | | Ref #14246 Ref gh-1588
* Effects: Move individual effects into effects folderAlexander Schmitz2015-08-082-16/+16
| | | | Ref #13885
* Effect: Make .transfer() callback optionalJörn Zaefferer2015-04-241-0/+26
| | | | | | | Adds two tests to at least check that no exception is thrown. Fixes #12223 Closes gh-1545
* Tests: Fix AMD loading in IE8Scott González2015-04-171-0/+1
| | | | | It appears that we must load require.js via a standard script tag in order for it to work properly in IE8.
* Tests: Rename filesScott González2015-04-093-1/+1
| | | | Ref gh-1528
* Effects: Convert tests to new infrastructureScott González2015-04-093-37/+30
| | | | | Ref #10119 Ref gh-1528
* Tests: Convert closeEnough() to a proper QUnit assertionScott González2015-04-091-3/+3
| | | | | | | Should eventually replace with qunit-assert-close. Ref #10119 Ref gh-1528
* Tests: Switch to the new qunit-composite moduleScott González2015-04-071-2/+2
| | | | | | This module was created from our existing implementation. Closes gh-1532
* Effects: Use new has/lacksClasses assertions for all class checksAlexander Schmitz2015-03-112-2/+4
|
* Effects: RewriteMike Sherov2014-12-103-43/+112
| | | | | | | | | | | | | | | | | | 1. Introduces a set of helper methods to easily create and define new effects. 2. Uses clip animations and placeholders instead of wrappers for clip effects. 3. Ensures all animations are detectable as animated Fixes #10599 Fixes #9477 Fixes #9257 Fixes #9066 Fixes #8867 Fixes #8671 Fixes #8505 Fixes #7885 Fixes #7041 Closes gh-1017
* Build: Pull in jquery.simulate.js from BowerMike Sherov2014-08-221-1/+1
| | | | Fixes #10563
* Tests: Fix composite testsScott González2014-08-011-1/+1
|
* Build: Reorganize external directoryScott González2014-06-242-4/+4
| | | | | | | Put each external library into its own directory. Move jquery.js to external. Ref gh-1266
* All: Rename jquery.js to exclude version in filenameJörn Zaefferer2014-03-051-1/+1
|
* Tests: Update to sane QUnit markupJörn Zaefferer2014-02-202-10/+2
|
* All: Rename all files, removing the "jquery.ui." prefix;Rafael Xavier de Souza2014-01-241-16/+16
| | | | | | | - By executing https://gist.github.com/jzaefferer/893fcf70b7eebc1dc271; Fixes #9464 Closes gh-1029
* Updating jQuery to 1.10.2.Bruno M. Custódio2013-07-051-1/+1
| | | | | Adding jQuery 1.10.0, 1.10.1, 1.10.2, 2.0.0, 2.0.1, 2.0.2 and 2.0.3 to the tests directory.
* Test: Update effects_core test, since puff-effect and size-effect now have ↵Rafael Xavier de Souza2013-06-222-4/+3
| | | | its own files
* Effects: Handle the .hide/show/toggle( options ) signatures from core ↵Scott González2013-02-282-0/+20
| | | | properly. Fixes #9126 - .show()/.hide() do not support all of core's options.
* Effects: Delegate to core show/hide when the element is already in the ↵Scott González2013-02-262-1/+11
| | | | correct final state. This forces the element to go through the olddisplay tracking and forces styles on elements even if they're hidden via an ancestor. Fixes #9120 - Effects: .hide() inconsistent with core with a hidden parent.
* Updating 'jQuery' to 1.9.1.Bruno M. Custódio2013-02-051-1/+1
|
* Effects Core: make removeClass work correctly with changes jQuery 1.9.0. ↵David Petersen2013-01-291-0/+11
| | | | Fixed #9015 - Inclusion of jQuery UI breaks removeClass
* Updating to jQuery 1.9.0Kris Borchers2013-01-171-1/+1
|
* Upgrade jQuery to 1.8.3.Scott González2012-11-141-1/+1
|
* Effects: Remove deprecated $.effects[]. Fixes #7115 - Effects: Remove ↵Jörn Zaefferer2012-10-251-3/+0
| | | | support for effects in $.effects[].
* Build: Enable "unused" option in jshint - Remove unused variables from ↵Mike Sherov2012-10-231-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | codebase. - Closes gh-788 Squashed commit of the following: commit 7f19f92c646f180bc067bb24123175251a64a9d6 Author: Mike Sherov <mike.sherov@gmail.com> Date: Tue Oct 23 10:34:28 2012 -0400 put back in fake args for signatures that we want to keep commit 257505a9e69da0c53e3a989dab87a13112045a29 Author: Mike Sherov <mike.sherov@gmail.com> Date: Tue Oct 23 08:10:20 2012 -0400 changes per @scott_gonzalez commit 12725480cb58e70865e5aa6e735009b6b035c8f3 Author: Mike Sherov <mike.sherov@gmail.com> Date: Mon Oct 22 22:54:05 2012 -0400 clean up unused vars in ui directory commit 563595e7aee5d4a5c096b2d1de655abdf920aacd Author: Mike Sherov <mike.sherov@gmail.com> Date: Mon Oct 22 22:37:42 2012 -0400 clean up unused vars in grunt and tests
* Effects: Allow 'null' for options - Fixes #8670 - null reference when using ↵Corey Frang2012-10-211-0/+11
| | | | effects - Closes gh-783
* Upgrade jQuery to 1.8.2.Scott González2012-09-201-1/+1
|
* Upgrade jQuery to 1.8.0.Scott González2012-08-131-1/+1
|
* Tests: Enable QUnit.config.requireExpects.Scott González2012-06-272-0/+2
|
* Effects tests: Convert step callback to a no-op after first call in ↵Scott González2012-06-251-6/+6
| | | | animateClass test.
* Effects tests: Don't use internal jQuery properties to detect support for ↵Scott González2012-06-161-7/+7
| | | | fixed positioning.
* Tests: Remove the need to include the 'ui.' prefix in testJshint() now that ↵Scott González2012-06-151-1/+1
| | | | effects use 'ui.'.
* Effects tests: Fixed JSHint references.Scott González2012-06-151-1/+1
|
* Effects: Renamed all files.Scott González2012-06-151-14/+14
|
* Effects tests: Added TODO for disabled test.Scott González2012-04-301-1/+1
|
* Effects Tests: Disabling focus based test - need some help here @scottgonzalezCorey Frang2012-04-301-1/+2
|
* Effects: Updating unit tests to use some more stable logic hopefullyCorey Frang2012-04-301-26/+67
|
* Tests: Run JSHint.Scott González2012-04-291-1/+7
|